Share via


AbstractEntityInstance Constructor (Entity, TypeDescriptor, Object, LobSystemInstance)

NOTE: This API is now obsolete.

Namespace:  Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.",  _
    False)> _
Public Sub New ( _
    entity As Entity, _
    rootTypeDescriptor As TypeDescriptor, _
    adapterObject As Object, _
    lobSystemInstance As LobSystemInstance _
)
'Usage
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)
[ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.", 
    false)]
public AbstractEntityInstance(
    Entity entity,
    TypeDescriptor rootTypeDescriptor,
    Object adapterObject,
    LobSystemInstance lobSystemInstance
)

Parameters

  • rootTypeDescriptor
    Type: Microsoft.Office.Server.ApplicationRegistry.MetadataModel.TypeDescriptor

    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
    Type: System.Object

    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.

Remarks

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.

See Also

Reference

AbstractEntityInstance Class

AbstractEntityInstance Members

AbstractEntityInstance Overload

Microsoft.Office.Server.ApplicationRegistry.Runtime Namespace