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.

EnableQueryAttribute::GetModel Method (Type^, HttpRequestMessage^, HttpActionDescriptor^)

 

Gets the EDM model for the given type and request. Override this method to customize the EDM model used for querying.

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

public:
virtual IEdmModel^ GetModel(
	Type^ elementClrType,
	HttpRequestMessage^ request,
	HttpActionDescriptor^ actionDescriptor
)

Parameters

elementClrType
Type: System::Type^

The CLR type to retrieve a model for.

request
Type: System.Net.Http::HttpRequestMessage^

The request message to retrieve a model for.

actionDescriptor
Type: System.Web.Http.Controllers::HttpActionDescriptor^

The action descriptor for the action being queried on.

Return Value

Type: Microsoft.Data.Edm::IEdmModel^

The EDM model for the given type and request.

Return to top
Show: