Pomelo.EntityFrameworkCore.MySql 9.0.0-preview.3.efcore.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
Quantum.Framework.Core.StandardLib
Package Description
80
Quantum.Framework.Core.StandardLib
Package Description
81
Quantum.Framework.Core.StandardLib
Package Description
82
Quantum.Framework.Core.StandardLib
Package Description
83
Quantum.Framework.Core.StandardLib
Package Description
91
Quantum.Framework.Core.StandardLib
Package Description
98
Quantum.Framework.Core.StandardLib
Package Description
99
Quantum.Framework.Core.StandardLib
Package Description
103
Quantum.Framework.Core.StandardLib
Package Description
106
Quantum.Framework.Core.StandardLib
Package Description
107
Quantum.Framework.Core.StandardLib
Package Description
108
Quantum.Framework.Core.StandardLib
Package Description
118
Quantum.Framework.Core.StandardLib
Package Description
128
Quantum.Framework.Core.StandardLib
Package Description
167
Quantum.Framework.Core.StandardLib
Package Description
177
Quantum.Framework.Core.StandardLib
Package Description
204

.NET 8.0

Version Downloads Last updated
9.0.0 14 08/19/2025
9.0.0-rc.1.efcore.9.0.0 13 08/05/2025
9.0.0-preview.3.efcore.9.0.0 27 02/25/2025
9.0.0-preview.2.efcore.9.0.0 24 12/30/2024
9.0.0-preview.1 41 04/21/2024
8.0.3 24 03/17/2025
8.0.2 534 04/22/2024
8.0.1 39 04/23/2024
8.0.0 31 04/25/2024
8.0.0-beta.2 28 04/22/2024
8.0.0-beta.1 34 04/22/2024
7.0.0 148 12/06/2023
7.0.0-silver.1 34 04/24/2024
7.0.0-alpha.1 34 05/10/2024
6.0.3 29 04/23/2024
6.0.2 137 10/28/2022
6.0.0-rc.2 34 04/22/2024
6.0.0-rc.1 23 04/22/2024
6.0.0-preview.7 32 06/10/2022
6.0.0-preview.6 33 04/22/2024
5.0.2 41 04/22/2024
5.0.1 45 07/15/2022
5.0.0-beta.2 23 04/22/2024
5.0.0-beta.1 34 05/06/2024
5.0.0-alpha.1 33 05/23/2024
3.2.6 32 06/10/2022
3.2.2 39 06/10/2022
3.1.0 32 06/10/2022
3.1.0-rc1.final 23 05/06/2024
3.0.0 31 06/10/2022
3.0.0-rc3.final 33 04/22/2024
3.0.0-rc2.final 28 04/22/2024
3.0.0-rc1.final 30 04/22/2024
2.2.0 29 05/02/2024
2.1.4 46 04/23/2024
2.1.0 36 04/22/2024
2.0.1 40 06/10/2022
1.1.0 38 06/10/2022
1.0.1 26 05/17/2024