AbstractEntityInstance 构造函数 (Entity, TypeDescriptor, Object, LobSystemInstance) (Microsoft.Office.Server.ApplicationRegistry.Runtime)
命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)
语法
声明
Public Sub New ( _
entity As Entity, _
rootTypeDescriptor As TypeDescriptor, _
adapterObject As Object, _
lobSystemInstance As LobSystemInstance _
)
用法
Dim entity As Entity
Dim rootTypeDescriptor As TypeDescriptor
Dim adapterObject As Object
Dim lobSystemInstance As LobSystemInstance
Dim instance As New AbstractEntityInstance(entity, rootTypeDescriptor, adapterObject, lobSystemInstance)
public AbstractEntityInstance (
Entity entity,
TypeDescriptor rootTypeDescriptor,
Object adapterObject,
LobSystemInstance lobSystemInstance
)
参数
- entity
The Entity object this is an instance of.
- rootTypeDescriptor
The root type descriptor that represents the entity instance. This corresponds to the ReturnTypeDescriptor of the MethodInstance that returns instances of the Entity. If the ReturnTypeDescriptor has the IsCollection flag set, then the root TypeDescriptor is the only child of the collection TypeDescriptor.
- adapterObject
The raw adapter object returned by the back-end application after a method is invoked. This is what the AbstractEntityInstance wraps and hides and provides a uniform interface for.
- lobSystemInstance
The LobSystemInstance object that this entity instance is being created from.
备注
The Business Data Catalog uses this constructor when this entity instance does not share common information with other entity instances, such as when a FindSpecific type of method instance runs. However, this constructor initializes a SharedEntityState object as a way to cache commonly recalculated information over the life of the entity, such as entity and root type descriptor names.
另请参阅
参考
AbstractEntityInstance 类
AbstractEntityInstance 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间