Pomelo.EntityFrameworkCore.MySql 8.0.2

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
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
22
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
23
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
24
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
22
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
25
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
30
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
23
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
24
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
34
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
35
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
24
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
25
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
26
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
27
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
30
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL
31
EFCore.BulkExtensions.MySql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
24

.NET 8.0

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