Devart.Data.Dynamics 3.2.100

Prefix Reserved
dotnet add package Devart.Data.Dynamics --version 3.2.100
                    
NuGet\Install-Package Devart.Data.Dynamics -Version 3.2.100
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Devart.Data.Dynamics" Version="3.2.100" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Devart.Data.Dynamics" Version="3.2.100" />
                    
Directory.Packages.props
<PackageReference Include="Devart.Data.Dynamics" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Devart.Data.Dynamics --version 3.2.100
                    
#r "nuget: Devart.Data.Dynamics, 3.2.100"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Devart.Data.Dynamics@3.2.100
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Devart.Data.Dynamics&version=3.2.100
                    
Install as a Cake Addin
#tool nuget:?package=Devart.Data.Dynamics&version=3.2.100
                    
Install as a Cake Tool

NuGet Version NuGet Downloads Windows macOS Linux Docker Amazon (AWS) Microsoft Azure

Advanced C# Connection Provider for Dynamics 365

dotconnect_dynamics_cover_green

dotConnect for Dynamics 365 is a high-performance ORM enabled data provider for Microsoft Dynamics 365 that builds on ADO.NET technology. It enables access to Dynamics 365 CRM data in .NET applications through standard SQL queries—no Dynamics 365 API expertise required.

The provider works with .NET Frameworks, .NET Core, .NET+.

It supports a wide range of Dynamics 365-specific features, including a powerful local SQL engine with SQL-92 support, full CRUD operations, complex JOIN queries, and others. Package provides advanced Visual Studio integration and convenient visual component editors to simplify component tweaking.

More information at dotConnect for Dynamics 365.

Installation


  1. Install the NuGet Package
Install-Package Devart.Data.Dynamics
  1. Activate license
  • Free Trial License: Evaluate the full capabilities of dotConnect for Dynamics 365 in a non-commercial environment—ideal for development and testing. Start your free trial
  • Commercial License: Deploy dotConnect for Dynamics 365 in commercial applications and access full technical support with a valid license. Purchase a license

Work with EF Core


For projects, using Entity Framework Core with Dynamics 365, install the Devart.Data.Dynamics.EFCore package.

Compatibility


The following table show which version of this package to use with which version of frameworks.

Frameworks Version support
.NET 10, 9, 8, 7, 6, 5
.NET Core 3.1, 3.0, 2.2, 2.1, 2.0
.NET Framework 4.8, 4.7, 4.6.2, 4.6.1

More information here

Key Features

  • SQL Access Without API Complexity: Query and manipulate Dynamics 365 data using standard SQL statements—no need to learn the Dynamics 365 Web API or OData. Use complex JOINs, WHERE conditions, aggregate functions, and more.
  • Full CRUD Operations: Perform INSERT, SELECT, UPDATE, and DELETE operations on Dynamics 365 entities such as accounts, contacts, leads, and opportunities through familiar SQL syntax.
  • Full ADO.NET Compatibility: 100% compliant with ADO.NET standards, supporting key interfaces such as DbConnection, DbCommand, DataSet, and DataTable for seamless integration into .NET applications.
  • Powerful Local SQL Engine: Built-in SQL-92 compliant engine enables advanced query capabilities beyond what the native Dynamics 365 API exposes.
  • ORM Support: Works with Entity Framework Core, NHibernate, and Dapper, enabling code-first and model-first workflows with Dynamics 365 data.
  • Flexible Authentication: Connect with username/password or OAuth credentials to your Dynamics 365 organization URL.
  • Broad Platform Compatibility: Fully compatible with .NET Core and .NET, including ASP.NET Core and Blazor.
  • Visual Studio Integration: Accelerate development with data source connection wizards, database object explorer, and schema management tools—all embedded in Visual Studio.
  • Reliable Security: Advanced encryption and authentication ensure secure access to your Dynamics 365 data.
  • Priority Support and Continuous Improvement: Backed by dedicated technical support and regular updates that deliver security enhancements, feature improvements, and long-term stability.

Usage


To help you get started quickly, here's a simple code example demonstrating how to connect to Dynamics 365.

using Devart.Data.Dynamics;

class Program
{
    static void Main(string[] args)
    {
        string connectionString = "Authentication Type=RefreshTokenInteractive;" +
        "License Key=**********";

        using (DynamicsConnection connection = new DynamicsConnection(connectionString))
        {
            try
            {
                connection.Open();
                Console.WriteLine("Connection successful!");
            }
            catch (Exception ex)
            {
                Console.WriteLine($"An error occurred: {ex.Message}");
            }
        }
    }
}

Basic Connection Strings

Property Meaning
Authentication Type Specifies the authentication method: RefreshTokenInteractive
Server Specifies the Dynamics 365 organization URL (e.g., https://company.crm.dynamics.com).
User Id Specifies the Microsoft account username (required for UsernamePassword authentication).
Password Specifies the password for the user ID.
License Key Specify your license key in this parameter.

For more detailed tutorials, API reference, and advanced examples, visit our Getting Started guide.

Support Area

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Devart.Data.Dynamics:

Package Downloads
Devart.Data.Dynamics.EFCore

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.100 0 5/25/2026
3.1.72 224 4/23/2026
3.1.35 239 3/6/2026
3.1.33 219 2/24/2026
3.0.0 377 12/19/2025
2.3.290 289 7/30/2025
2.3.235 404 4/25/2025
2.3.193 338 2/11/2025
2.3.191 302 1/15/2025
2.3.190 311 12/27/2024
2.2.104 309 11/8/2024
2.2.21 353 6/6/2024
2.2.20 338 5/30/2024
2.1.10 376 1/18/2024
2.0.0 392 11/17/2023