Devart.Data.MySql.EFCore 9.3.21

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Devart.Data.MySql.EFCore --version 9.3.21
NuGet\Install-Package Devart.Data.MySql.EFCore -Version 9.3.21
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.MySql.EFCore" Version="9.3.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Devart.Data.MySql.EFCore --version 9.3.21
#r "nuget: Devart.Data.MySql.EFCore, 9.3.21"
#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.
// Install Devart.Data.MySql.EFCore as a Cake Addin
#addin nuget:?package=Devart.Data.MySql.EFCore&version=9.3.21

// Install Devart.Data.MySql.EFCore as a Cake Tool
#tool nuget:?package=Devart.Data.MySql.EFCore&version=9.3.21

dotConnect for MySQL

dotConnect for MySQL is a high-performance ORM enabled data provider for MySQL 8.0+ including Embedded servers (starting with 4.1), MariaDB, Amazon RDS, Amazon Aurora, Azure MySQL, Percona that builds on ADO.NET technology.

The provider works with .NET Frameworks 4.6+, .NET Core 1.0+, .NET 5+. The product is compatible with ADO.NET Entity Framework v1 - v6 and Entity Framework (EF) Core 8+.

It supports a wide range of MySQL-specific features, such as secure SSL and SSH connections, compression protocol, HTTP tunneling and others.

More information at dotConnect for MySQL.

Installation


For projects, using Entity Framework Core 1, 3, 5, 6, 7, 8 with MySQL, install this package. Execute the following command in the Package Manager Console:

Install-Package Devart.Data.MySql.EFCore

For projects, using Entity Framework Core 1.1, for which you use database-first approach and generate an Entity Framework Core mapping via the Scaffold-DbContext command of Package Manager Console, you need to install the Devart.Data.MySql.EFCore.Design package.

For projects that require integration with Entity Framework 6.4 (EF6), use the Devart.Data.MySql.EF6 package.

There also are Visual Studio extensions for earlier Visual Studio versions. If you use some other tool than Visual Studio, you can get NuGet packages with the nuget.exe console tool.

To activate your license, please download dotConnect for MySQL from our website. The Professional editions of dotConnect for MySQL include Entity Developer, a comprehensive visual ORM designer, enhancing the development experience with intuitive design and management of ORM models.

Compatibility


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

Frameworks Version support
Entity Framework Core 8, 7, 6, 5, 3, 2, 1
.NET 8, 7, 6, 5
.NET Core 3, 2, 1
.NET Framework 4.8, 4.7, 4.6

More information here

Usage


This snippet directly configures a MySQL database connection for an Entity Framework Core DbContext using a connection string.

public class MyDbContext : DbContext {
 
  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {

     optionsBuilder.UseMySql(@"User Id=root;Password=mypassword;Host=127.0.0.1;Port=3306;");
  } 
}

Configuration Using MySqlConnection Instance

using Devart.Data.MySql;
...

public class MyDbContext : DbContext {
 
  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {

     var connection = new MySqlConnection();
     connection.Host = "127.0.0.1";
     connection.Port = 3306;
     connection.UserId = "root";
     connection.Password = "mypassword";
     optionsBuilder.UseMySql(connection);
  } 
}
ASP.NET Core and Blazor

Configuration File (appsettings.json):

{
  "ConnectionStrings": {
    "DefaultConnection": "User Id=root;Password=mypassword;Host=127.0.0.1;Port=3306;"
   }
}

DbContext Configuration:

public class MyDbContext : DbContext {
 
  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {

    IConfigurationBuilder builder = new ConfigurationBuilder().AddJsonFile("appsettings.json");
    IConfiguration configuration = builder.Build();
    optionsBuilder.UseMySql(configuration.GetConnectionString("DefaultConnection"));
  } 
}

For more information about secure connections using SSL or SSH connections read at out documentation.

Key Features

  • Direct Mode: Allows your application to work with MySQL directly, without involving MySQL client library.
  • ASP.NET Core: Supports ASP.NET Core Identity.
  • Performance: Uses many MySQL-specific performance features & optimizations to ensure the highest performance.
  • Monitoring: Allows per-component tracing of database events with a free dbMonitor application.
  • Security: Supports various encryption ciphers, SSL and SSH connections, etc.

License

dotConnect for MySQL is available in several editions. See pricing options for ordering.

Support Area

Documentation Request form Feedback page Product history

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 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Devart.Data.MySql.EFCore:

Package Downloads
Devart.Data.MySql.EFCore.Design The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

dotConnect for MySQL is an enhanced database connectivity solution built over ADO.NET architecture and a development framework with advanced support for ORMs, such as Entity Framework and EF Core, and offers a complete solution for developing DB-related applications and web sites.

Devart.Data.MySql.EFCore.NetTopologySuite The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

dotConnect for MySQL is an enhanced database connectivity solution built over ADO.NET architecture and a development framework with advanced support for ORMs, such as Entity Framework and EF Core, and offers a complete solution for developing DB-related applications and web sites.

BizDoc.Core.MySql

MySql storage for BizDoc

BizDoc.Storage.MySql

MySql storage for BizDoc

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.3.21.8 113 6/6/2024
9.3.21.7 78 6/6/2024
9.3.21 124 6/6/2024
9.3.20.8 201 5/30/2024
9.3.20.7 95 5/30/2024
9.3.20 151 5/30/2024
9.3.10.8 1,475 1/18/2024
9.3.10.7 743 1/18/2024
9.3.10 847 1/18/2024
9.2.0.7 2,008 11/17/2023
9.2.0 1,317 11/17/2023
9.1.151.7 4,424 6/7/2023
9.1.151 1,769 6/7/2023
9.1.134.7 4,200 3/4/2023
9.1.134 2,149 3/4/2023
9.0.0 97,416 7/1/2022
8.21.2066 23,571 1/26/2022
8.20.2042 51,159 12/21/2021
8.19.2014 4,653 11/9/2021
8.19.2001 3,019 10/21/2021
8.19.1985 3,575 9/28/2021
8.19.1944 2,760 7/30/2021
8.19.1930 2,634 7/8/2021
8.19.1905 22,660 6/3/2021
8.19.1866 4,507 4/9/2021
8.19.1860 2,347 4/1/2021
8.19.1836 2,651 2/18/2021
8.19.1812 2,748 1/14/2021
8.19.1792 2,567 12/17/2020
8.19.1782 2,485 12/3/2020
8.18.1759 108,224 10/29/2020
8.18.1739 4,276 10/1/2020
8.18.1730 4,448 9/17/2020
8.17.1696 4,383 7/30/2020
8.17.1686 5,399 7/16/2020
8.17.1666 4,031 6/17/2020
8.17.1612 22,082 4/2/2020
8.17.1583 22,365 2/20/2020
8.16.1541 2,987 12/23/2019
8.15.1519 87,415 11/21/2019
8.15.1504 3,881 10/31/2019
8.15.1499 2,263 10/24/2019
8.14.1470 3,302 9/13/2019
8.13.1437 3,610 7/25/2019
8.13.1422 2,751 7/4/2019
8.13.1402 2,830 6/6/2019
8.13.1366 25,619 4/12/2019
8.12.1357 3,950 3/28/2019
8.12.1328 3,044 2/14/2019
8.12.1307 10,039 1/10/2019
8.12.1278 3,974 11/29/2018
8.12.1253 3,573 10/25/2018
8.12.1229 8,604 9/20/2018
8.12.1216 2,978 8/31/2018
8.12.1202 5,096 8/10/2018
8.12.1190 4,637 7/19/2018
8.11.1172 3,510 6/22/2018
8.10.1152 3,254 5/25/2018
8.10.1134 3,222 4/27/2018
8.10.1115 3,266 3/30/2018
8.10.1086 3,350 2/15/2018
8.10.1061 2,925 1/11/2018
8.10.1031 2,762 11/23/2017
8.10.1013 2,731 10/30/2017
8.9.980 3,639 9/7/2017
8.9.958 3,093 8/4/2017
8.9.946 2,946 7/14/2017
8.9.931 2,833 6/23/2017
8.9.912 2,907 5/25/2017