| Different OData Query options in ASP.NET Core WebAPI?
Below are the different OData query options in ASP.NET core WebAPI
(1)$orderby:-With the help of orderby we can sorts the fetched record in ascending or descending orders.
(2)$select:-Here we can select columns or properties in result set. And we can specifies which attributes or properties include in fetched result.
(3)$skip:-From skip we can skip number of records or results. To understand we take example if we want to skip first 50 records from database then we can use Skip keyword.
(4)$top:-With the help of top we will fetch top n records for example if we want to fetch top 10 records then we will use top keyword.
(5)$expand:-Here we will expands the related domain entities of the fetched entities.
(6)$filter:-Here we will apply some filter on the result set and it is like where clause of LINQ.
(7)$inlinecount:-Here we use inlinecount query option for using pagination on the client-side. It tells the count of total entities fetched from the server to the client. | | |