Jaa


ResourceContext<TStructuredType> Class

Definition

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

public class ResourceContext<TStructuredType> : Microsoft.AspNet.OData.ResourceContext
type ResourceContext<'StructuredType> = class
    inherit ResourceContext
Public Class ResourceContext(Of TStructuredType)
Inherits ResourceContext

Type Parameters

TStructuredType

The structural type

Inheritance
ResourceContext<TStructuredType>

Constructors

ResourceContext<TStructuredType>()

Initializes a new instance of the ResourceContext<TStructuredType> class.

Properties

DynamicComplexProperties

Gets or sets the dynamic complex or collection of complex properties should be nested in this instance.

(Inherited from ResourceContext)
EdmModel

Gets or sets the IEdmModel to which this instance belongs.

(Inherited from ResourceContext)
EdmObject

Gets or sets the IEdmStructuredObject backing this instance.

(Inherited from ResourceContext)
NavigationSource

Gets or sets the IEdmNavigationSource to which this instance belongs.

(Inherited from ResourceContext)
Request

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

(Inherited from ResourceContext)
ResourceInstance
Obsolete.

Gets or sets the resource instance.

SerializerContext

Gets or sets the ODataSerializerContext.

(Inherited from ResourceContext)
SkipExpensiveAvailabilityChecks

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

(Inherited from ResourceContext)
StructuredType

Gets or sets the IEdmStructuredType of this resource instance.

(Inherited from ResourceContext)
Url

Gets or sets a System.Web.Http.Routing.UrlHelper that may be used to generate links while serializing this resource instance.

(Inherited from ResourceContext)

Methods

GetPropertyValue(String)

Gets the value of the property with the given name from the IEdmObject of this instance if present; throws if the property is not present.

(Inherited from ResourceContext)

Extension Methods

GenerateActionLink(ResourceContext, IEdmOperation)

Generates an action link following the OData URL conventions for the action action and bound to the entity represented by resourceContext.

GenerateFunctionLink(ResourceContext, IEdmOperation)

Generates an function link following the OData URL conventions for the function function and bound to the entity represented by resourceContext.

GenerateNavigationPropertyLink(ResourceContext, IEdmNavigationProperty, Boolean)

Generates a navigation link following the OData URL conventions for the entity represented by resourceContext and the given navigation property.

GenerateSelfLink(ResourceContext, Boolean)

Generates a self link following the OData URL conventions for the entity represented by resourceContext.

Applies to