Share via


ODataQueryContext Constructors

Definition

Overloads

ODataQueryContext(IEdmModel, IEdmType, ODataPath)

Constructs an instance of ODataQueryContext with IEdmModel, element EDM type, and ODataPath.

ODataQueryContext(IEdmModel, Type, ODataPath)

Constructs an instance of ODataQueryContext with IEdmModel, element CLR type, and ODataPath.

ODataQueryContext(IEdmModel, IEdmType, ODataPath)

Constructs an instance of ODataQueryContext with IEdmModel, element EDM type, and ODataPath.

public ODataQueryContext (Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmType elementType, Microsoft.AspNet.OData.Routing.ODataPath path);
new Microsoft.AspNet.OData.ODataQueryContext : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmType * Microsoft.AspNet.OData.Routing.ODataPath -> Microsoft.AspNet.OData.ODataQueryContext
Public Sub New (model As IEdmModel, elementType As IEdmType, path As ODataPath)

Parameters

model
IEdmModel

The EDM model the given EDM type belongs to.

elementType
IEdmType

The EDM type of the element of the collection being queried.

path
ODataPath

The parsed ODataPath.

Applies to

ODataQueryContext(IEdmModel, Type, ODataPath)

Constructs an instance of ODataQueryContext with IEdmModel, element CLR type, and ODataPath.

public ODataQueryContext (Microsoft.OData.Edm.IEdmModel model, Type elementClrType, Microsoft.AspNet.OData.Routing.ODataPath path);
new Microsoft.AspNet.OData.ODataQueryContext : Microsoft.OData.Edm.IEdmModel * Type * Microsoft.AspNet.OData.Routing.ODataPath -> Microsoft.AspNet.OData.ODataQueryContext
Public Sub New (model As IEdmModel, elementClrType As Type, path As ODataPath)

Parameters

model
IEdmModel

The EdmModel that includes the IEdmType corresponding to the given elementClrType.

elementClrType
Type

The CLR type of the element of the collection being queried.

path
ODataPath

The parsed ODataPath.

Remarks

This is a public constructor used for stand-alone scenario; in this case, the services container may not be present.

Applies to