This class defines an attribute that can be applied to an action to enable querying using the OData query syntax. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit http://go.microsoft.com/fwlink/?LinkId=279712.
Подробнее...
|
override void | ValidateQuery (HttpRequestMessage request, ODataQueryOptions queryOptions) |
| Validates the OData query in the incoming request. By default, the implementation throws an exception if the query contains unsupported query parameters. Override this method to perform additional validation of the query. Подробнее...
|
|
override IQueryable | ApplyQuery (IQueryable queryable, ODataQueryOptions queryOptions) |
| Applies the query to the given IQueryable based on incoming query from uri and query settings. By default, the implementation supports $top, $skip, $orderby and $filter. Override this method to perform additional query composition of the query. Подробнее...
|
|
override object | ApplyQuery (object entity, ODataQueryOptions queryOptions) |
| Applies the query to the given entity based on incoming query from uri and query settings. Подробнее...
|
|
This class defines an attribute that can be applied to an action to enable querying using the OData query syntax. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit http://go.microsoft.com/fwlink/?LinkId=279712.
override IQueryable NewPlatform.Flexberry.ORM.ODataService.Formatter.CustomEnableQueryAttribute.ApplyQuery |
( |
IQueryable |
queryable, |
|
|
ODataQueryOptions |
queryOptions |
|
) |
| |
|
inline |
Applies the query to the given IQueryable based on incoming query from uri and query settings. By default, the implementation supports $top, $skip, $orderby and $filter. Override this method to perform additional query composition of the query.
- Аргументы
-
queryable | The original queryable instance from the response message. |
queryOptions | The ODataQueryOptions instance constructed based on the incoming request. |
- Возвращает
- queryable
override object NewPlatform.Flexberry.ORM.ODataService.Formatter.CustomEnableQueryAttribute.ApplyQuery |
( |
object |
entity, |
|
|
ODataQueryOptions |
queryOptions |
|
) |
| |
|
inline |
Applies the query to the given entity based on incoming query from uri and query settings.
- Аргументы
-
entity | The original entity from the response message. |
queryOptions | The ODataQueryOptions instance constructed based on the incoming request. |
- Возвращает
- The new entity after the $select and $expand query has been applied to.
override void NewPlatform.Flexberry.ORM.ODataService.Formatter.CustomEnableQueryAttribute.ValidateQuery |
( |
HttpRequestMessage |
request, |
|
|
ODataQueryOptions |
queryOptions |
|
) |
| |
|
inline |
Validates the OData query in the incoming request. By default, the implementation throws an exception if the query contains unsupported query parameters. Override this method to perform additional validation of the query.
- Аргументы
-
request | The incoming request. |
queryOptions | The ODataQueryOptions instance constructed based on the incoming request. |