Pomelo.EntityFrameworkCore.MySql 9.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
Mgsoft.Saas.EntityFrameworkCore
Package Description
57
Mgsoft.Saas.EntityFrameworkCore
Package Description
50
Mgsoft.Saas.EntityFrameworkCore
Package Description
33
Mgsoft.Saas.EntityFrameworkCore
Package Description
31
Mgsoft.Saas.EntityFrameworkCore
Package Description
23
AspNetCore.HealthChecks.UI.MySql.Storage
HealthChecks.UI.MySql.Storage package contains the required classes to use the MySql database provider in the UI
15
Mgsoft.Saas.EntityFrameworkCore
Package Description
15
Volo.Abp.EntityFrameworkCore.MySQL
Package Description
12
Mgsoft.Saas.EntityFrameworkCore
Package Description
12
Mgsoft.Saas.EntityFrameworkCore
Package Description
11
Pomelo.EntityFrameworkCore.MySql.Design
Package Description
10
Mgsoft.Saas.EntityFrameworkCore
Package Description
10
Mgsoft.Saas.EntityFrameworkCore
Package Description
7
Mgsoft.Saas.EntityFrameworkCore
Package Description
6
Mgsoft.Saas.EntityFrameworkCore
Package Description
5

.NET 8.0

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