EntityInstanceContext<TEntityType> 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.OData
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

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

Syntax

public class EntityInstanceContext<TEntityType> : EntityInstanceContext
generic<typename TEntityType>
public ref class EntityInstanceContext : EntityInstanceContext
type EntityInstanceContext<'TEntityType> = 
    class
        inherit EntityInstanceContext
    end
Public Class EntityInstanceContext(Of TEntityType)
    Inherits EntityInstanceContext

Type Parameters

  • TEntityType
    The entity type

Constructors

Name Description
System_CAPS_pubmethod EntityInstanceContext<TEntityType>()

Initializes a new instance of the EntityInstanceContext<TEntityType> class.

Properties

Name Description
System_CAPS_pubproperty EdmModel

Gets or sets the IEdmModel to which this instance belogs.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty EdmObject

Gets or sets the IEdmEntityObject backing this instance.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty EntityInstance

Obsolete.Gets or sets the entity instance.

System_CAPS_pubproperty EntityType

Gets or sets the IEdmEntityType of this entity instance.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty NavigationSource

Gets or sets the IEdmNavigationSource to which this instance belongs.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty Request

Gets or sets the HTTP request that caused this instance to be generated.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty SerializerContext

Gets or sets the ODataSerializerContext.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty SkipExpensiveAvailabilityChecks

Gets or sets a value indicating whether ActionAvailabilityChecks should be performed or not.(Inherited from EntityInstanceContext.)

System_CAPS_pubproperty Url

Gets or sets a UrlHelper that may be used to generate links while serializing this entity instance.(Inherited from EntityInstanceContext.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod GenerateActionLink(IEdmOperation)

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_pubmethod GenerateFunctionLink(IEdmOperation)

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

System_CAPS_pubmethod GenerateNavigationPropertyLink(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_pubmethod GenerateSelfLink(Boolean)

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

Thread Safety

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

See Also

System.Web.OData Namespace

Return to top