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
Quantum.Framework.Core.StandardLib
Package Description
44
Quantum.Framework.Core.StandardLib
Package Description
45
Quantum.Framework.Core.StandardLib
Package Description
46
Quantum.Framework.Core.StandardLib
Package Description
47
Quantum.Framework.Core.StandardLib
Package Description
48
Quantum.Framework.Core.StandardLib
Package Description
51
Quantum.Framework.Core.StandardLib
Package Description
53
Quantum.Framework.Core.StandardLib
Package Description
54
Quantum.Framework.Core.StandardLib
Package Description
57
Quantum.Framework.Core.StandardLib
Package Description
61
Quantum.Framework.Core.StandardLib
Package Description
70
Quantum.Framework.Core.StandardLib
Package Description
71
Quantum.Framework.Core.StandardLib
Package Description
110
Quantum.Framework.Core.StandardLib
Package Description
150
Quantum.Framework.Core.StandardLib
Package Description
157
Quantum.Framework.Core.StandardLib
Package Description
164

.NET 8.0

Version Downloads Last updated
9.0.0-preview.1 11 04/21/2024
8.0.2 301 04/22/2024
8.0.1 6 04/23/2024
8.0.0 5 04/25/2024
8.0.0-beta.2 9 04/22/2024
8.0.0-beta.1 6 04/22/2024
7.0.0 111 12/06/2023
7.0.0-silver.1 5 04/24/2024
7.0.0-alpha.1 3 05/10/2024
6.0.3 5 04/23/2024
6.0.2 105 10/28/2022
6.0.0-rc.2 4 04/22/2024
6.0.0-rc.1 4 04/22/2024
6.0.0-preview.7 6 06/10/2022
6.0.0-preview.6 6 04/22/2024
5.0.2 4 04/22/2024
5.0.1 14 07/15/2022
5.0.0-beta.2 4 04/22/2024
5.0.0-beta.1 3 05/06/2024
5.0.0-alpha.1 3 05/23/2024
3.2.6 5 06/10/2022
3.2.2 7 06/10/2022
3.1.0 7 06/10/2022
3.1.0-rc1.final 3 05/06/2024
3.0.0 6 06/10/2022
3.0.0-rc3.final 8 04/22/2024
3.0.0-rc2.final 4 04/22/2024
3.0.0-rc1.final 4 04/22/2024
2.2.0 3 05/02/2024
2.1.4 5 04/23/2024
2.1.0 4 04/22/2024
2.0.1 7 06/10/2022
1.1.0 4 06/10/2022
1.0.1 3 05/17/2024