dotConnect for MongoDB has two sets of assemblies:
The packages include the native libraries for Windows x86 and x64 only.
The .NET Standard compatible assemblies and the Entity Framework Core provider are available only as NuGet packages.
You add the dotConnect for MongoDB NuGet packages to your project from nuget.org. The appropriate assemblies are selected automatically, depending on the target framework of your project.
To install the packages in Visual Studio, open the Package Manager Console by selecting Tools > NuGet Package Manager > Package Manager Console, then run the required command.
For projects that use the general ADO.NET functionality of dotConnect for MongoDB, install the Devart.Data.MongoDB package:
For projects that use Entity Framework Core with MongoDB, install the Devart.Data.MongoDB.EFCore package. There is one version of this package for each supported Entity Framework Core version, as listed in the table below:
The following table describes the dotConnect for MongoDB NuGet packages.
| Package | Target frameworks | Contents |
|---|---|---|
| Devart.Data.MongoDB | net451, netstandard2.0 | The provider plus the native libraries in runtimes/win-x86/native and runtimes/win-x64/native. For .NET Framework projects, a build target copies them to the Native\win-x86 and Native\win-x64 folders of the output. |
| Devart.Data.MongoDB.EFCore | One version per Entity Framework Core version: 3.1 (netstandard2.0), 8, 9, 10, 11 | The Entity Framework Core provider. The versions ending with .8, .9, .10, and .11 are for Entity Framework Core 8, 9, 10, and 11, respectively; the version without a suffix is for Entity Framework Core 3.1. |
Earlier Visual Studio versions work with NuGet packages through Visual Studio extensions. If you use a tool other than Visual Studio, get the packages with the nuget.exe console tool.