Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.82 KB

File metadata and controls

51 lines (37 loc) · 1.82 KB
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
Dynamics 365 Customer Engagement (on-premises)
d5e5ec45-6465-4281-9e14-5f213a8c3bde
22
KumarVivek
kvivek
developer

Sample: More LINQ query examples

This sample code is for [!INCLUDEpn_dynamics_crm_online]. Download the complete sample from Sample: Work with Queries.

Prerequisites

[!INCLUDEsdk-prerequisite]

Requirements

[!INCLUDEsdk_SeeConnectionHelper]

Demonstrates

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.

Example

[!code-csharpquery#UseLinqQuery]

See also

Build Queries with LINQ (.NET Language-Integrated Query)
Sample: Use LINQ with Late Binding
xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext

[!INCLUDEfooter-include]