QueryableAttribute.GetModel Method

Gets the EDM model for the given type and request.

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


Public Overridable Function GetModel ( _
    elementClrType As Type, _
    request As HttpRequestMessage, _
    actionDescriptor As HttpActionDescriptor _
) As IEdmModel
Dim instance As QueryableAttribute 
Dim elementClrType As Type 
Dim request As HttpRequestMessage 
Dim actionDescriptor As HttpActionDescriptor 
Dim returnValue As IEdmModel 

returnValue = instance.GetModel(elementClrType, _
    request, actionDescriptor)
public virtual IEdmModel GetModel(
    Type elementClrType,
    HttpRequestMessage request,
    HttpActionDescriptor actionDescriptor
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 function GetModel(
    elementClrType : Type, 
    request : HttpRequestMessage, 
    actionDescriptor : HttpActionDescriptor
) : IEdmModel


  • elementClrType
    Type: System.Type
    The CLR type to retrieve a model for.

Return Value

Type: IEdmModel
The EDM model for the given type and request.


Override this method to customize the EDM model used for querying.

See Also


QueryableAttribute Class

System.Web.Http Namespace