LINQ queries demonstrate how to operate and query the Dynamics 365 Sales objects wrapped in an Entity Framework data model. Listed below are some examples of LINQ queries supported by the Entity framework.
The following query searches for particular records from the database.
You can also search for strings within strings. The following example retrieves all the entities with a value that contains "con".
The following example limits the results returned to 10. This helps to limit display of records.
The following example displays account records sorted in descending order. This helps to arrange items in a particular order.
The following example counts all entities that match a given criterion.
The following example groups entities based on a given criterion.
The provider supports standard LINQ joins. The following is an example of a cross join between Accounts and Contracts.