Pomelo.EntityFrameworkCore.MySql 8.0.0

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
Ding.Datas
Ding.Datas是基于.net core平台开发的应用框架中的NetCore数据访问类库。
4
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
3
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
3
Ding.Datas
Ding.Datas是基于.net core平台开发的应用框架中的NetCore数据访问类库。
3

.NET 8.0

Version Downloads Last updated
9.0.0 0 2025/8/17
9.0.0-rc.1.efcore.9.0.0 0 2025/7/28
9.0.0-preview.3.efcore.9.0.0 0 2025/2/23
9.0.0-preview.2.efcore.9.0.0 0 2024/12/13
9.0.0-preview.1 0 2024/2/28
8.0.3 2 2025/8/29
8.0.2 2 2025/8/29
8.0.1 2 2025/8/29
8.0.0 2 2025/7/18
8.0.0-beta.2 0 2023/11/18
8.0.0-beta.1 0 2023/9/29
7.0.0 1 2025/12/3
7.0.0-silver.1 0 2022/12/14
7.0.0-alpha.1 0 2022/11/16
6.0.3 2 2025/8/29
6.0.2 2 2025/8/29
6.0.1 2 2025/8/29
6.0.0 0 2021/11/9
6.0.0-rc.2 0 2021/11/9
6.0.0-rc.1 0 2021/11/9
6.0.0-preview.7 0 2021/10/7
6.0.0-preview.6 0 2021/10/4
6.0.0-preview.5 0 2021/6/27
6.0.0-preview.4 0 2021/5/25
5.0.4 2 2025/8/29
5.0.3 2 2025/8/29
5.0.2 2 2025/8/29
5.0.1 2 2025/8/29
5.0.0 0 2021/4/28
5.0.0-beta.2 0 2021/4/28
5.0.0-beta.1 0 2021/4/22
5.0.0-alpha.2 0 2020/11/12
5.0.0-alpha.1 0 2020/11/5
3.2.7 2 2025/8/29
3.2.6 2 2025/8/29
3.2.5 2 2025/8/29
3.2.4 2 2025/8/29
3.2.3 0 2020/10/13
3.2.2 0 2020/9/30
3.2.1 0 2020/9/23
3.2.0 0 2020/9/16
3.1.2 0 2020/7/22
3.1.1 0 2020/1/29
3.1.0 0 2019/12/16
3.1.0-rc1.final 0 2019/12/6
3.0.1 0 2019/12/4
3.0.0 2 2025/6/3
3.0.0-rc3.final 0 2019/11/7
3.0.0-rc2.final 0 2019/11/5
3.0.0-rc1.final 0 2019/10/6
2.2.6 0 2019/10/15
2.2.0 0 2019/2/7
2.1.4 2 2025/8/29
2.1.2 0 2018/9/4
2.1.1 0 2018/7/7
2.1.0 0 2018/7/11
2.0.1 0 2017/11/26
2.0.0.1 0 2017/10/27
2.0.0 0 2017/9/19
1.1.2 0 2017/5/6
1.1.0 0 2016/11/29
1.0.1 0 2016/10/29
1.0.0 0 2016/8/5