Powerful Dynamics CRM Application Integration
Powerful Dynamics CRM Application Integration
  • DataBind to Microsoft Dynamics CRM using standard Visual Studio wizards.
  • Comprehensive support for CRUD (Create, Read, Update, and Delete) operations.
  • Integrate .NET applications with Dynamics CRM Leads, Contacts, Opportunities, Accounts, and more!
Download Free Trial

The Dynamics CRM Data Provider for ADO.NET offers the most natural way to access Mscrm data from any .NET application. Simply use Microsoft CRM Data Provider objects to connect and access data just as you would access any traditional database. You will be able to use the Microsoft CRM Data Provider through Visual Studio Server Explorer, in code through familiar classes, and in data controls like DataGridView, GridView, DataSet, etc.

Using the Microsoft CRM Data Provider

The Microsoft CRM Data Provider wraps the complexity of accessing Mscrm services in an easy-to-integrate, fully-managed ADO.NET Data Provider. Applications then access Mscrm through the Microsoft CRM Data Provider with simple Transact-SQL.

 

The Dynamics CRM Data Provider for ADO.NET hides the complexity of accessing data and provides additional powerful security features, smart caching, batching, socket management, and more.

Working with DataAdapters, DataSets, DataTables, etc.

The Microsoft CRM Data Provider has the same ADO.NET architecture as the native .NET data providers for SQL Server and OLEDB including: MscrmConnection, MscrmCommand, MscrmDataAdapter, MscrmDataReader, MscrmDataSource, MscrmParameter, and MscrmTransaction. Because of this you can now access Mscrm data in an easy, familiar way.

For example:

using (MscrmConnection conn = new MscrmConnection("...")) {
	string select = "SELECT * FROM MscrmLeads";
	MscrmCommand cmd = new MscrmCommand(select, conn);
	MscrmDataAdapter adapter = new MscrmDataAdapter(cmd);
	using (adapter) {
		DataTable table = new DataTable();
		adapter.Fill(table);		
		...
	}
}

More Than Read-Only: Full Update/CRUD Support

Microsoft CRM Data Provider goes beyond read-only functionality to deliver full support for Create, Read Update, and Delete operations (CRUD). Your end-users can interact with the data presented by the Microsoft CRM Data Provider as easily as interacting with a database table.

using (MscrmConnection connection = new MscrmConnection(connectionString)) {
	MscrmDataAdapter dataAdapter = new MscrmDataAdapter(
	"SELECT Id, Where FROM Leads", connection);
  
	dataAdapter.UpdateCommand = new MscrmCommand(
		"UPDATE Leads SET Where = @Where " +
		"WHERE Id = @ID", connection);

	dataAdapter.UpdateCommand.Parameters.AddWithValue("@Where", "Where");
	dataAdapter.UpdateCommand.Parameters.AddWithValue("@Id", "80000173-1387137645");

	DataTable LeadsTable = new DataTable();
	dataAdapter.Fill(LeadsTable);

	DataRow firstrow = LeadsTable.Rows[0];
	firstrow["Where"] = "New Location";

	dataAdapter.Update(LeadsTable);
}