LINQ queries demonstrate how to operate and query the CSV objects wrapped in an Entity Framework data model. Below are some examples of LINQ queries supported by the Entity framework.
Contains
Retrieve all records from the Books table that contains "Agriculture" in their Industry name. |
|
||||
Count
Count all entities that match a given criterion. |
|
||||
Select and Filter
Select records from the table SampleCSV that belong to Year equal to 2011. |
|
||||
Limit
Select first 2 records. |
|
||||
Order By
Sort records form the table SampleCSV by Year in descending order. |
|
||||
Group By
Group records from the SampleCsvs table based on the Age property. The groups are then ordered in descending order based on the Age. |
|