Translate a LINQ Query to FetchXML
[Applies to: Microsoft Dynamics CRM 4.0]
Having an understanding of the mechanics behind the Microsoft Dynamics CRM SDK FetchXML language can be helpful, especially in debugging query issues. To view the FetchXML equivalent of a particular Microsoft Dynamics CRM LINQ query, call the ToString() method on the query expression. If the LINQ query is in a form that cannot be translated into FetchXML, the call to ToString() will throw an exception with the details on the translation error.
- Parts of the Query
- Build Complex Queries
- Use Dynamic Entity with LINQ Queries and the CrmDataContext
- Using FetchXML
© 2010 Microsoft Corporation. All rights reserved.