EnableQueryAttribute.GetModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetModel(Type, HttpRequestMessage, HttpActionDescriptor) |
Gets the EDM model for the given type and request. Override this method to customize the EDM model used for querying. |
GetModel(Type, HttpRequest, ActionDescriptor) |
Gets the EDM model for the given type and request.Override this method to customize the EDM model used for querying. |
GetModel(Type, HttpRequestMessage, HttpActionDescriptor)
Gets the EDM model for the given type and request. Override this method to customize the EDM model used for querying.
public virtual Microsoft.OData.Edm.IEdmModel GetModel (Type elementClrType, System.Net.Http.HttpRequestMessage request, System.Web.Http.Controllers.HttpActionDescriptor actionDescriptor);
abstract member GetModel : Type * System.Net.Http.HttpRequestMessage * System.Web.Http.Controllers.HttpActionDescriptor -> Microsoft.OData.Edm.IEdmModel
override this.GetModel : Type * System.Net.Http.HttpRequestMessage * System.Web.Http.Controllers.HttpActionDescriptor -> Microsoft.OData.Edm.IEdmModel
Public Overridable Function GetModel (elementClrType As Type, request As HttpRequestMessage, actionDescriptor As HttpActionDescriptor) As IEdmModel
Parameters
- elementClrType
- Type
The CLR type to retrieve a model for.
- request
- HttpRequestMessage
The request message to retrieve a model for.
- actionDescriptor
- System.Web.Http.Controllers.HttpActionDescriptor
The action descriptor for the action being queried on.
Returns
The EDM model for the given type and request.
Applies to
GetModel(Type, HttpRequest, ActionDescriptor)
Gets the EDM model for the given type and request.Override this method to customize the EDM model used for querying.
public virtual Microsoft.OData.Edm.IEdmModel GetModel (Type elementClrType, Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor);
abstract member GetModel : Type * Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor -> Microsoft.OData.Edm.IEdmModel
override this.GetModel : Type * Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor -> Microsoft.OData.Edm.IEdmModel
Public Overridable Function GetModel (elementClrType As Type, request As HttpRequest, actionDescriptor As ActionDescriptor) As IEdmModel
Parameters
- elementClrType
- Type
The CLR type to retrieve a model for.
- request
- HttpRequest
The request message to retrieve a model for.
- actionDescriptor
- ActionDescriptor
The action descriptor for the action being queried on.
Returns
The EDM model for the given type and request.