Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.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.OData.Edm.IEdmModel
The EDM model for the given type and request.
See Also
EnableQueryAttribute Class
System.Web.OData Namespace
Return to top