Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EntityInstanceContext Class

 

An instance of EntityInstanceContext<TEntityType> gets passed to the self link ( M:EntitySetConfiguration.HasIdLink, M:EntitySetConfiguration.HasEditLink, M:EntitySetConfiguration.HasReadLink ) and navigation link ( M:EntitySetConfiguration.HasNavigationPropertyLink, M:EntitySetConfiguration.HasNavigationPropertiesLink ) builders and can be used by the link builders to generate links.

Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

System::Object
  System.Web.Http.OData::EntityInstanceContext
    System.Web.Http.OData::EntityInstanceContext<TEntityType>

public ref class EntityInstanceContext 

NameDescription
System_CAPS_pubmethodEntityInstanceContext()

Initializes a new instance of the EntityInstanceContext class.

System_CAPS_pubmethodEntityInstanceContext(ODataSerializerContext^, IEdmEntityTypeReference^, Object^)

Initializes a new instance of the EntityInstanceContext class.

NameDescription
System_CAPS_pubpropertyEdmModel

Gets or sets the IEdmModel to which this instance belogs.

System_CAPS_pubpropertyEdmObject

Gets or sets the IEdmEntityObject backing this instance.

System_CAPS_pubpropertyEntityInstance

Gets or sets the value of this entity instance.

System_CAPS_pubpropertyEntitySet

Gets or sets the IEdmEntitySet to which this instance belongs.

System_CAPS_pubpropertyEntityType

Gets or sets the IEdmEntityType of this entity instance.

System_CAPS_pubpropertyRequest

Gets or sets the HTTP request that caused this instance to be generated.

System_CAPS_pubpropertySerializerContext

Gets or sets the ODataSerializerContext.

System_CAPS_pubpropertySkipExpensiveAvailabilityChecks

Gets or sets a value indicating whether ActionAvailabilityChecks should be performed or not.

System_CAPS_pubpropertyUrl

Gets or sets a UrlHelper that may be used to generate links while serializing this entity instance.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubmethodGenerateActionLink(IEdmFunctionBase^)

Generates an action link following the OData URL conventions for the action action and bound to the entity represented by entityContext.(Defined by LinkGenerationHelpers.)

System_CAPS_pubmethodGenerateNavigationPropertyLink(IEdmNavigationProperty^, Boolean)

Generates a navigation link following the OData URL conventions for the entity represented by entityContext and the given navigation property.(Defined by LinkGenerationHelpers.)

System_CAPS_pubmethodGenerateSelfLink(Boolean)

Generates a self link following the OData URL conventions for the entity represented by entityContext.(Defined by LinkGenerationHelpers.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: