Share via


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.Type

    The CLR type to retrieve a model for.

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