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.OData
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual IEdmModel GetModel(
Type elementClrType,
HttpRequestMessage request,
HttpActionDescriptor actionDescriptor
)
public:
virtual IEdmModel^ GetModel(
Type^ elementClrType,
HttpRequestMessage^ request,
HttpActionDescriptor^ actionDescriptor
)
abstract GetModel :
elementClrType:Type *
request:HttpRequestMessage *
actionDescriptor:HttpActionDescriptor -> IEdmModel
override GetModel :
elementClrType:Type *
request:HttpRequestMessage *
actionDescriptor:HttpActionDescriptor -> IEdmModel
Public Overridable Function GetModel (
elementClrType As Type,
request As HttpRequestMessage,
actionDescriptor As HttpActionDescriptor
) As IEdmModel
Parameters
elementClrType
Type: System.TypeThe CLR type to retrieve a model for.
request
Type: System.Net.Http.HttpRequestMessageThe request message to retrieve a model for.
actionDescriptor
Type: System.Web.Http.Controllers.HttpActionDescriptorThe action descriptor for the action being queried on.
Return Value
Type: Microsoft.OData.Edm.IEdmModel
The EDM model for the given type and request.
See Also
EnableQueryAttribute Class
System.Web.OData Namespace
Return to top