LINQ queries demonstrate how to operate and query the Snowflake objects wrapped in an Entity Framework data model. Listed below are some examples of LINQ queries supported by the Entity framework. In the following example, it is used CallCenter.cs file to map the CallCenter Datatable.
Select and Filter
Retrieve records from the CALL_CENTER table where the CC_CALL_CENTER_SK is "1. |
| ||||
Contains
Retrieve records from the CALL_CENTER table where the cc_class property contains the substring "large". |
| ||||
Limit
Retrieve the first 10 records from the CALL_CENTER table. |
| ||||
Order by
Retrieve all records from the CALL_CENTER table and sort them in descending order based on the cc_class property. |
| ||||
Count
Count all entities that match a given criterion. |
| ||||
Group By
Group records from the CALL_CENTER table based on the cc_class property. The groups are then ordered in descending order based on the cc_class. |
|