pomelo-debug - Pomelo.EntityFrameworkCore.MySql 9.0.0-preview.2.ci.20240426121436.debug+sha.99e7920

Pomelo's MySQL database provider for Entity Framework Core.

PM> Install-Package Pomelo.EntityFrameworkCore.MySql -Version 9.0.0-preview.2.ci.20240426121436.debug -Source https://www.myget.org/F/pomelo-debug/api/v3/index.json

Copy to clipboard

> nuget.exe install Pomelo.EntityFrameworkCore.MySql -Version 9.0.0-preview.2.ci.20240426121436.debug -Source https://www.myget.org/F/pomelo-debug/api/v3/index.json

Copy to clipboard

> dotnet add package Pomelo.EntityFrameworkCore.MySql --version 9.0.0-preview.2.ci.20240426121436.debug --source https://www.myget.org/F/pomelo-debug/api/v3/index.json

Copy to clipboard
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0-preview.2.ci.20240426121436.debug" />
Copy to clipboard
source https://www.myget.org/F/pomelo-debug/api/v3/index.json

nuget Pomelo.EntityFrameworkCore.MySql  ~> 9.0.0-preview.2.ci.20240426121436.debug
Copy to clipboard

> choco install Pomelo.EntityFrameworkCore.MySql --version 9.0.0-preview.2.ci.20240426121436.debug --source https://www.myget.org/F/pomelo-debug/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "pomelo-debug" -SourceLocation "https://www.myget.org/F/pomelo-debug/api/v2"
Install-Module -Name "Pomelo.EntityFrameworkCore.MySql" -RequiredVersion "9.0.0-preview.2.ci.20240426121436.debug" -Repository "pomelo-debug" -AllowPreRelease
Copy to clipboard

Pomelo.EntityFrameworkCore.MySql

Build status Stable release feed for official builds Nightly build feed for release builds Nightly build feed for debugging enabled builds

Pomelo.EntityFrameworkCore.MySql is the most popular Entity Framework Core provider for MySQL compatible databases. It supports EF Core up to its latest version and uses MySqlConnector for high-performance database server communication.

Compatibility

Dependencies

The following versions of MySqlConnector, EF Core, .NET (Core), .NET Standard and .NET Framework are compatible with published releases of Pomelo.EntityFrameworkCore.MySql:

Release Branch MySqlConnector EF Core .NET (Core) .NET Standard .NET Framework
9.0.0-
preview.1
main >= 2.3.5 9.0.0-
preview.1
8.0+ - -
8.0.2 8.0-maint >= 2.3.5 8.0.2 8.0+ - -
7.0.0 7.0-maint >= 2.2.5 7.0.x 6.0+ - -
6.0.3 6.0-maint >= 2.1.2 6.0.x 6.0+ - -
5.0.4 5.0-maint >= 1.3.13 5.0.x 3.0+ 2.1 -
3.2.7 3.2-maint >= 0.69.10 < 1.0.0 3.1.x 2.0+ 2.0 4.6.1+

Packages

Supported Database Servers and Versions

Pomelo.EntityFrameworkCore.MySql is tested against all actively maintained versions of MySQL and MariaDB. Older versions (e.g. MySQL 5.7) and other server implementations (e.g. Amazon Aurora) are usually compatible to a high degree as well, but are not tested as part of our CI.

Officially supported versions are:

  • MySQL 8.0
  • MariaDB 11.3
  • MariaDB 11.2
  • MariaDB 11.1
  • MariaDB 11.0
  • MariaDB 10.11 (LTS)
  • MariaDB 10.6 (LTS)
  • MariaDB 10.5 (LTS)
  • MariaDB 10.4 (LTS)

Schedule and Roadmap

Milestone Status Release Date
9.0.0-preview.1 Released 2024-02-28 (see #1841)
8.0.2 Released 2024-03-16
7.0.0 Released 2023-01-16
6.0.3 Released 2024-03-16
5.0.4 Released 2022-01-22
3.2.7 Released 2021-10-04

Nightly Builds

To use nightly builds from our Azure DevOps feed, add a NuGet.config file to your solution root with the following content and enable prereleases:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <packageSources>
        <add key="pomelo-nightly" value="https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-public/nuget/v3/index.json" />
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    </packageSources>
</configuration>

Feeds

Feeds that contain optimized (Release configuration) builds:

  • https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-public/nuget/v3/index.json
  • https://www.myget.org/F/pomelo/api/v3/index.json

Feeds that contain debugging enabled unoptimized (Debug configuration) builds:

  • https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-debug/nuget/v3/index.json
  • https://www.myget.org/F/pomelo-debug/api/v3/index.json

The AZDO nupkg packages always contain .pdb files.

The MyGet nupkg packages only contain .pdb files for their debug builds. For optimized builds, the symbols are packed in a snupkg file and are available via the https://www.myget.org/F/pomelo/api/v2/symbolpackage/ symbol server URL.

All .pdb files use Source Link.

Getting Started

1. Project Configuration

Ensure that your .csproj file contains the following reference:

<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />

2. Services Configuration

Add Pomelo.EntityFrameworkCore.MySql to the services configuration in your the Startup.cs file of your ASP.NET Core project:

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, 36));

        // 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()
        );
    }
}

View our Configuration Options Wiki Page for a list of common options.

3. Sample Application

Check out our Integration Tests for an example repository that includes an ASP.NET Core MVC Application.

There are also many complete and concise console application samples posted in the issue section (some of them can be found by searching for Program.cs).

4. Read the EF Core Documentation

Refer to Microsoft's EF Core Documentation for detailed instructions and examples on using EF Core.

Scaffolding / Reverse Engineering

Use the EF Core tools to execute scaffolding commands:

dotnet ef dbcontext scaffold "Server=localhost;User=root;Password=1234;Database=ef" "Pomelo.EntityFrameworkCore.MySql"

Contribute

One of the easiest ways to contribute is to report issues, participate in discussions and update the wiki docs. You can also contribute by submitting pull requests with code changes and supporting tests.

We are always looking for additional core contributors. If you got a couple of hours a week and know your way around EF Core and MySQL, give us a nudge.

License

MIT

  • .NETFramework 8.0
    • Microsoft.EntityFrameworkCore.Relational (>= 9.0.0-preview.1.24081.2 && <= 9.0.0-preview.1.999999)
    • MySqlConnector (>= 2.3.5)
  • .NETFramework 8.0: 8.0.0.0

Owners

LauXjpn

Authors

Laurents Meyer, Caleb Lloyd, Yuko Zheng

Project URL

https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql

License

Unknown

Tags

pomelo mysql mariadb Entity Framework Core entity-framework-core ef efcore ef core orm sql

Info

0 total downloads
0 downloads for version 9.0.0-preview.2.ci.20240426121436.debug+sha.99e7920
Download (338.69 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
9.0.0-preview.2.ci.20240426121436.debug+sha.99e7920 338.69 KB Fri, 26 Apr 2024 12:15:33 GMT 0
9.0.0-preview.2.ci.20240425135150.debug+sha.8cfea66 338.58 KB Thu, 25 Apr 2024 13:52:50 GMT 0
9.0.0-preview.2.ci.20240425124334.debug+sha.156585f 338.57 KB Thu, 25 Apr 2024 12:44:28 GMT 0
9.0.0-preview.2.ci.20240317172502.debug+sha.5ca0fa1 338.58 KB Sun, 17 Mar 2024 17:25:51 GMT 0
9.0.0-preview.2.ci.20240315190621.debug+sha.5322b41 338.42 KB Fri, 15 Mar 2024 19:07:24 GMT 0
9.0.0-preview.2.ci.20240310094954.debug+sha.f4d0fee 336.83 KB Sun, 10 Mar 2024 09:50:45 GMT 0
9.0.0-preview.2.ci.20240309000114.debug+sha.cebe707 334.6 KB Sat, 09 Mar 2024 00:02:22 GMT 0
9.0.0-preview.2.ci.20240307210937.debug+sha.28387fc 334.76 KB Thu, 07 Mar 2024 21:10:37 GMT 0
9.0.0-preview.2.ci.20240307033613.debug+sha.d75b62e 334.76 KB Thu, 07 Mar 2024 03:37:04 GMT 0
9.0.0-preview.2.ci.20240306172048.debug+sha.1ccd763 333.48 KB Wed, 06 Mar 2024 17:21:43 GMT 0
9.0.0-preview.2.ci.20240306161514.debug+sha.2b0ca14 333.38 KB Wed, 06 Mar 2024 16:16:30 GMT 0
9.0.0-preview.2.ci.20240305003702.debug+sha.0f6d4d6 332.87 KB Tue, 05 Mar 2024 00:37:53 GMT 0
9.0.0-preview.2.ci.20240304232723.debug+sha.1f88ec7 332.88 KB Mon, 04 Mar 2024 23:28:36 GMT 0
9.0.0-preview.2.ci.20240304224637.debug+sha.b3552fe 331.89 KB Mon, 04 Mar 2024 22:47:29 GMT 0
9.0.0-preview.2.ci.20240304220612.debug+sha.db868a3 331.88 KB Mon, 04 Mar 2024 22:07:11 GMT 0
9.0.0-preview.2.ci.20240304213801.debug+sha.c5949d0 331.89 KB Mon, 04 Mar 2024 21:39:02 GMT 0
9.0.0-preview.2.ci.20240304014802.debug+sha.c8bf3ea 331.89 KB Mon, 04 Mar 2024 01:48:55 GMT 0
9.0.0-preview.2.ci.20240303231126.debug+sha.2eabb2a 331.88 KB Sun, 03 Mar 2024 23:12:17 GMT 0
9.0.0-preview.2.ci.20240303225252.debug+sha.5adf75c 331.9 KB Sun, 03 Mar 2024 22:53:51 GMT 0
9.0.0-preview.2.ci.20240303151902.debug+sha.e104ba6 331.9 KB Sun, 03 Mar 2024 15:19:51 GMT 0
9.0.0-preview.1.debug 331.77 KB Wed, 28 Feb 2024 13:51:04 GMT 0
9.0.0-preview.1.ci.20240228122118.debug+sha.f5f7a56 331.9 KB Wed, 28 Feb 2024 12:22:30 GMT 0
8.0.3-servicing.1.ci.20240320124355.debug+sha.8070305 334.51 KB Wed, 20 Mar 2024 12:45:03 GMT 0
8.0.3-servicing.1.ci.20240317202530.debug+sha.47a1a29 334.52 KB Sun, 17 Mar 2024 20:26:17 GMT 0
8.0.3-servicing.1.ci.20240316102223.debug+sha.5215b3b 334.36 KB Sat, 16 Mar 2024 10:23:18 GMT 0
8.0.2-servicing.1.ci.20240316091308.debug+sha.6b1e9ca 334.35 KB Sat, 16 Mar 2024 09:13:59 GMT 0
8.0.2-servicing.1.ci.20240316080736.debug+sha.bcbedf4 333.14 KB Sat, 16 Mar 2024 08:08:27 GMT 0
8.0.2-servicing.1.ci.20240316002520.debug+sha.73aab49 333.09 KB Sat, 16 Mar 2024 00:26:13 GMT 0
8.0.2-servicing.1.ci.20240315234101.debug+sha.53826cc 332.62 KB Fri, 15 Mar 2024 23:41:53 GMT 0
8.0.2-servicing.1.ci.20240309010742.debug+sha.7bf885a 331.56 KB Sat, 09 Mar 2024 01:08:38 GMT 0
8.0.2-servicing.1.ci.20240308012617.debug+sha.d9afafb 331.69 KB Fri, 08 Mar 2024 01:27:14 GMT 0
8.0.2-servicing.1.ci.20240307190153.debug+sha.1457e87 331.7 KB Thu, 07 Mar 2024 19:03:00 GMT 0
8.0.2-debug 334.2 KB Sat, 16 Mar 2024 09:51:33 GMT 0
8.0.1-servicing.1.ci.20240228101911.debug+sha.40ed6d9 331.56 KB Wed, 28 Feb 2024 10:20:08 GMT 0
8.0.1-servicing.1.ci.20240228092546.debug+sha.e7a8e2d 331.56 KB Wed, 28 Feb 2024 09:26:41 GMT 0
8.0.1-servicing.1.ci.20240227230621.debug+sha.3ef628f 331.56 KB Tue, 27 Feb 2024 23:07:34 GMT 0
8.0.1-servicing.1.ci.20240227202303.debug+sha.cdcaeac 327.23 KB Tue, 27 Feb 2024 20:24:01 GMT 0
8.0.1-servicing.1.ci.20240227201218.debug+sha.5a3f9ca 327.22 KB Tue, 27 Feb 2024 20:13:18 GMT 0
8.0.1-servicing.1.ci.20240227200245.debug+sha.ca58b0d 327.07 KB Tue, 27 Feb 2024 20:03:58 GMT 0
8.0.1-servicing.1.ci.20240227200211.debug+sha.284e9a5 327.06 KB Tue, 27 Feb 2024 20:03:13 GMT 0
8.0.1-servicing.1.ci.20240223085158.debug+sha.90072f0 327.12 KB Fri, 23 Feb 2024 08:52:56 GMT 0
8.0.1-debug 331.37 KB Wed, 28 Feb 2024 12:49:07 GMT 0
7.0.1-servicing.1.ci.20240317204702+sha.b24f4b4 416.99 KB Sun, 17 Mar 2024 20:47:57 GMT 0
7.0.1-servicing.1.ci.20240317181053+sha.29f8073 416.74 KB Sun, 17 Mar 2024 18:11:50 GMT 0
7.0.1-servicing.1.ci.20240316155757+sha.28c19dd 416.71 KB Sat, 16 Mar 2024 15:58:50 GMT 0
6.0.4-servicing.1.ci.20240318004759+sha.326b218 211.27 KB Mon, 18 Mar 2024 00:48:43 GMT 0
6.0.4-servicing.1.ci.20240316220040+sha.ef39c34 211.2 KB Sat, 16 Mar 2024 22:01:24 GMT 0
6.0.3 211.07 KB Sat, 16 Mar 2024 21:23:34 GMT 0
6.0.3-servicing.1.ci.20240316204716+sha.e3e0036 211.21 KB Sat, 16 Mar 2024 20:48:00 GMT 0
6.0.3-servicing.1.ci.20240316160449+sha.38f7f25 211.2 KB Sat, 16 Mar 2024 16:05:32 GMT 0
6.0.3-servicing.1.ci.20240316130242+sha.c932360 211.18 KB Sat, 16 Mar 2024 13:03:27 GMT 0