This documentation is archived and is not being maintained.

Use Data Services to Simplify Data Modification in Microsoft Dynamics CRM

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

The create, retrieve, update, and delete operations provided in the XrmDataContext class are analogous to the DataServiceContext class of the ADO.NET Data Services framework. The core members of DataServiceContext also exist (following the same signatures) in XrmDataContext. In addition to the ease of portability between server and client applications, this pattern allows better integration with other .NET components that recognize this type of context pattern.

The following examples are based on the following connection string read from an App.config (or Web.config) file:

  <add name="Crm" connectionString="Authentication Type=Passport;
    User ID=your-windowslive-id; Password=your-wlid-password;
    Device ID=your-device-id; Device Password=your-device-password"/>

See Also


© 2010 Microsoft Corporation. All rights reserved.