Table of Contents

Class ODataQueryContext

Namespace
System.Web.Http.OData
Assembly
System.Web.Http.OData.dll

This defines some context information used to perform query composition.

public class ODataQueryContext
Inheritance
ODataQueryContext
Inherited Members

Constructors

ODataQueryContext(IEdmModel, IEdmType)

Constructs an instance of ODataQueryContext with Microsoft.Data.Edm.IEdmModel and element CLR type.

public ODataQueryContext(IEdmModel model, IEdmType elementType)

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.

ODataQueryContext(IEdmModel, Type)

Constructs an instance of ODataQueryContext with Microsoft.Data.Edm.IEdmModel and element CLR type.

public ODataQueryContext(IEdmModel model, Type elementClrType)

Parameters

model IEdmModel

The EdmModel that includes the Microsoft.Data.Edm.IEdmType corresponding to the given elementClrType.

elementClrType Type

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

Properties

ElementClrType

Gets the CLR type of the element.

public Type ElementClrType { get; }

Property Value

Type

ElementType

Gets the Microsoft.Data.Edm.IEdmType of the element.

public IEdmType ElementType { get; }

Property Value

IEdmType

Model

Gets the given Microsoft.Data.Edm.IEdmModel that contains the EntitySet.

public IEdmModel Model { get; }

Property Value

IEdmModel