LINQ queries demonstrate how to operate and query the JSON objects wrapped in an Entity Framework data model. Listed below are some examples of LINQ queries supported by the Entity framework.
Contains
Retrieve records from the Books table where the AuthorFirstName contains the letter"A". |
|
||||
Count
Count all entities that match a given criterion. |
|
||||
Select and Filter
Select records from the Books table that belong to Genre equal to "autobiography". |
|
||||
Limit
Select first 2 records. |
|
||||
Order By
Sort records by Title in descending order. |
|
||||
Group By
Group records from the Books table based on the Title property. The groups are then ordered in descending order based on the Title. |
|