Are you having trouble understanding the Dynamics CRM SDK?
![]() |
QueryExpression q = new QueryExpression(); q.EntityName = "account";
q.ColumnSet = new AllColumns(); q.Criteria = new FilterExpression(); q.Criteria.FilterOperator = LogicalOperator.And;
q.Criteria.AddCondition("name", ConditionOperator.Like, "A%"); q.AddOrder("name", OrderType.Ascending); BusinessEntityCollection r = sdk.RetrieveMultiple(q);
foreach (account account in r.BusinessEntities) {
Console.WriteLine(account.name);
} |
How can XrmLinq help me?
XrmLinq is a Linq to Dynamics CRM .NET library.
It is designed to increase your productivity by reducing the amount of time and effort needed to effectively use Dynamics CRM. Instead of learning the ins and outs of the complex Software Development Kit (SDK) and the complexities of CRM you can use this library, putting CRM into a context that you are already familiar with.
You simply point XrmLinq at your crm server, it will then automatically generate C# or VB.NET code for you. The code generated is standard C#/VB.NET code which you are already familiar with, all the crm specific parts are abstracted away so that you don’t have to know anything about the crm sdk!
How does XrmLinq work?
It is very similar to LINQ to SQL. If you’ve played around with LINQ to SQL and have used the new query language in .NET v3.5 Framework you’ll find this library a breeze to work with.

