Pomelo.EntityFrameworkCore.MySql 9.0.1-servicing.1.efcore.10

About

Pomelo.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.Json and System.Text.Json)
  • Spatial support
  • High performance

License

Pomelo.EntityFrameworkCore.MySql is released as open source under the MIT license.

Feedback

Bug reports and contributions are welcome at our GitHub repository.

Showing the top 20 packages that depend on Pomelo.EntityFrameworkCore.MySql.

Packages Downloads
XFQ.Lib.Data
数据处理类库:实现了基础DbContext、仓储模式、UnitOfWork模式
133
XFQ.Lib.Data.DbUtility
Package Description
109
XFQ.Lib.Data.DbUtility
Package Description
94
XFQ.Lib.Data.DbUtility
Package Description
89
XFQ.Lib.Data.DbUtility
Package Description
83
XFQ.Lib.Data.DbUtility
Package Description
82
XFQ.Lib.Data.DbUtility
Package Description
78
XFQ.Lib.Data.DbUtility
Package Description
73
XFQ.Lib.Data
数据处理类库:实现了基础DbContext、仓储模式、UnitOfWork模式
72
XFQ.Lib.Data.DbUtility
Package Description
68
XFQ.Lib.Data
数据处理类库:实现了基础DbContext、仓储模式、UnitOfWork模式
67
XFQ.Lib.Data.DbUtility
Package Description
64
XFQ.Lib.Data.DbUtility
Package Description
61
XFQ.Lib.Data.DbUtility
Package Description
56
XFQ.Lib.Data.DbUtility
Package Description
53
XFQ.Lib.Data.DbUtility
Package Description
52

.NET 8.0

Version Downloads Last updated
9.0.1-servicing-localbuild.1.efcore.10 8 2026/2/5
9.0.1-servicing.1.efcore.10 7 2026/2/5