LINQ queries demonstrate how to operate and query the Salesforce objects wrapped in an Entity Framework data model. Listed below are some examples of LINQ queries supported by the Entity framework.
Select and Filter Retrieve records from the Order table where the BillingState is "Delhi". |
|
||||
Contains
Retrieve records from the Order table where the AccountId property contains the letter "A" in its value. |
|
||||
Limit
Retrieve the first 10 records from the Order table. |
|
||||
Order by
Retrieve all records from the Order table and sorts them in descending order based on the AccountId property. |
|
||||
Count
Count all entities that match a given criterion. |
|
||||
Group By
Group records from the Order table based on the BillingCity property. |
|
||||
Joins
Cross join between the Status and BillingState tables. |
|