dotConnect for Dynamics 365 is an ADO.NET provider for working with Dynamics 365 data through the standard ADO.NET interfaces. It allows you to easily integrate Dynamics 365 data into your .NET applications, and integrate Dynamics 365 services with widely used data-oriented technologies. The provider works with .NET Frameworks 4.5+, .NET Core 3.1, .NET 5+. It has the same standard ADO.NET classes as other standard ADO.NET providers: DynamicsConnection, DynamicsCommand, DynamicsDataAdapter, DynamicsDataReader, DynamicsParameter, etc. This allows you quickly get started with it and eliminates the need to study any Dynamics 365 data access specificities. More information at https://www.devart.com/dotconnect/dynamicscrm/ License See pricing options for ordering https://www.devart.com/dotconnect/dynamicscrm/ordering.html The NuGet package initiates the retrieval of an activation key from the Devart website. This key is required to activate the product for a free trial. Key Features * Easy Connection: Allows your .NET application to work with Dynamics 365 data. * SQL Engine: No need to study and use complex Dynamics 365 API, just use familiar SQL statements. You may use complex JOINs, WHERE conditions, etc. - all the SQL benefits, not available with Dynamics 365 API. * Support and updates: Enjoy dedicated support team for prompt issue resolution and regular updates to keep your software running smoothly and securely.
$ dotnet add package Devart.Data.DynamicsdotConnect for Dynamics 365 is an ADO.NET provider for working with Dynamics 365 data through the standard ADO.NET interfaces. It allows you to easily integrate Dynamics 365 data into your .NET applications, and integrate Dynamics 365 services with widely used data-oriented technologies.
The provider works with .NET Frameworks 4.5+, .NET Core 3.1, .NET 5+.
It has the same standard ADO.NET classes as other standard ADO.NET providers: DynamicsConnection, DynamicsCommand, DynamicsDataAdapter, DynamicsDataReader, DynamicsParameter, etc. This allows you quickly get started with it and eliminates the need to study any Dynamics 365 data access specificities.
More information at dotConnect for Dynamics 365.
The following table show which version of this package to use with which version of frameworks.
| Frameworks | Version support |
|---|---|
| .NET | 9, 8, 7, 6, 5 |
| .NET Core | 3.1 |
More information here
For projects, using general ADO.NET functionality of dotConnect for Dynamics 365, you need to install the Devart.Data.Dynamics package. Execute the following command in the Package Manager Console:
Install-Package Devart.Data.Dynamics
For projects, using Entity Framework Core 5, 6, 7, 8, 9 with Dynamics, install the Devart.Data.Dynamics.EFCore package.
See pricing options for ordering.
The NuGet package initiates a 30-day free trial automatically, so no additional action is required.
In this example, a new instance of the DynamicsConnection class (part of the Devart.Data.Dynamics namespace) is created.
connection.ConnectionString = "Server=https://your_company.crm4.dynamics.com;UserId=Test@Test.onmicrosoft.com;Password=A123456789;";Configuration File Snippet (appsettings.json):
{
"ConnectionStrings": {
"DefaultConnection": "Server=https://your_company.crm4.dynamics.com;UserId=Test@Test.onmicrosoft.com;Password=A123456789;"
}
}Dependency Injection of IConfiguration:
private readonly IConfiguration configuration;
public YourController(IConfiguration config)
{
configuration = config;
}Retrieving a Connection String:
var connectionString = configuration.GetConnectionString("DefaultConnection");
var connection = new DynamicsConnection(connectionString);