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
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
18
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
17
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
17
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
17
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
17
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
16
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
16
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
16
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
16
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
15
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
15

.NET 8.0

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