Modspace.EntityFrameworkCore.MySql
10.0.0-rtm.1
dotnet add package Modspace.EntityFrameworkCore.MySql --version 10.0.0-rtm.1
NuGet\Install-Package Modspace.EntityFrameworkCore.MySql -Version 10.0.0-rtm.1
<PackageReference Include="Modspace.EntityFrameworkCore.MySql" Version="10.0.0-rtm.1" />
<PackageVersion Include="Modspace.EntityFrameworkCore.MySql" Version="10.0.0-rtm.1" />
<PackageReference Include="Modspace.EntityFrameworkCore.MySql" />
paket add Modspace.EntityFrameworkCore.MySql --version 10.0.0-rtm.1
#r "nuget: Modspace.EntityFrameworkCore.MySql, 10.0.0-rtm.1"
#:package Modspace.EntityFrameworkCore.MySql@10.0.0-rtm.1
#addin nuget:?package=Modspace.EntityFrameworkCore.MySql&version=10.0.0-rtm.1&prerelease
#tool nuget:?package=Modspace.EntityFrameworkCore.MySql&version=10.0.0-rtm.1&prerelease
About
Modspace.EntityFrameworkCore.MySql is the Entity Framework Core (EF Core) provider for MySQL, MariaDB, Amazon Aurora, Azure Database for MySQL and other MySQL-compatible databases.
It is build on top of MySqlConnector.
How to Use
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Replace with your connection string.
var connectionString = "server=localhost;user=root;password=1234;database=ef";
// Replace with your server version and type.
// Use 'MariaDbServerVersion' for MariaDB.
// Alternatively, use 'ServerVersion.AutoDetect(connectionString)'.
// For common usages, see pull request #1233.
var serverVersion = new MySqlServerVersion(new Version(8, 0, 29));
// Replace 'YourDbContext' with the name of your own DbContext derived class.
services.AddDbContext<YourDbContext>(
dbContextOptions => dbContextOptions
.UseMySql(connectionString, serverVersion)
// The following three options help with debugging, but should
// be changed or removed for production.
.LogTo(Console.WriteLine, LogLevel.Information)
.EnableSensitiveDataLogging()
.EnableDetailedErrors()
);
}
}
Key Features
- JSON support (both
Newtonsoft.JsonandSystem.Text.Json) - Spatial support
- High performance
Related Packages
- JSON support
- Spatial support
- Other Packages
License
Modspace.EntityFrameworkCore.MySql is released as open source under the MIT license.
Feedback
Bug reports and contributions are welcome at our GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0 && <= 10.0.999)
- MySqlConnector (>= 2.4.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Modspace.EntityFrameworkCore.MySql:
| Package | Downloads |
|---|---|
|
Modspace.EntityFrameworkCore.MySql.Json.Newtonsoft
JSON support using Newtonsoft.Json (JSON.NET) for Modspace's MySQL provider for Entity Framework Core. |
|
|
Modspace.EntityFrameworkCore.MySql.NetTopologySuite
NetTopologySuite support for Modspace's MySQL provider for Entity Framework Core. |
|
|
Modspace.EntityFrameworkCore.MySql.Json.Microsoft
JSON support using System.Text.Json for Modspace's MySQL provider for Entity Framework Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0-rtm.1 | 104 | 4/12/2026 |