Udostępnij za pośrednictwem


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)

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.Data.Edm.IEdmModel

The EDM model for the given type and request.

See Also

EnableQueryAttribute Class
System.Web.Http.OData Namespace

Return to top