title | description | ms.custom | ms.date | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | applies_to | ms.assetid | caps.latest.revision | author | ms.author | search.audienceType | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sample: More LINQ query examples (Developer Guide for Dynamics 365 Customer Engagement)| MicrosoftDocs |
This sample shows how to create .NET Language-Integrated Query (LINQ) queries |
10/31/2017 |
pehecke |
sample |
|
d5e5ec45-6465-4281-9e14-5f213a8c3bde |
22 |
KumarVivek |
kvivek |
|
This sample code is for [!INCLUDEpn_dynamics_crm_online]. Download the complete sample from Sample: Work with Queries.
[!INCLUDEsdk-prerequisite]
[!INCLUDEsdk_SeeConnectionHelper]
This sample shows how to create [!INCLUDEpn_LINQ] queries. The following queries are demonstrated:
-
Retrieve records with
Skip
/Take
record paging. -
Use
orderBy
to order items retrieved. -
Filter multiple entities using LINQ.
-
Build a complex query with LINQ.
[!code-csharpquery#UseLinqQuery]
Build Queries with LINQ (.NET Language-Integrated Query)
Sample: Use LINQ with Late Binding
xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext
[!INCLUDEfooter-include]