Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Strapi | 56,228 | 175 | 5 hours ago | 516 | July 31, 2023 | 480 | other | JavaScript | ||
🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first. | ||||||||||
Nocodb | 37,955 | 6 | 6 hours ago | 84 | July 28, 2023 | 590 | agpl-3.0 | TypeScript | ||
🔥 🔥 🔥 Open Source Airtable Alternative | ||||||||||
Prisma | 33,981 | 442 | 6 hours ago | 4,993 | September 24, 2022 | 2,919 | apache-2.0 | TypeScript | ||
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB | ||||||||||
Typeorm | 32,156 | 1,994 | 3,154 | 2 days ago | 741 | July 22, 2023 | 2,162 | mit | TypeScript | |
ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms. | ||||||||||
Mindsdb | 17,945 | 6 hours ago | 434 | July 25, 2023 | 597 | gpl-3.0 | Python | |||
MindsDB connects AI models to databases. | ||||||||||
Mysql | 13,672 | 4,892 | 11,214 | 8 days ago | 51 | April 25, 2023 | 73 | mpl-2.0 | Go | |
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package | ||||||||||
Migrate | 12,273 | 815 | 5 days ago | 132 | June 11, 2023 | 294 | other | Go | ||
Database migrations. CLI and Golang library. | ||||||||||
Sqlx | 9,941 | 476 | 7 hours ago | 47 | July 15, 2023 | 539 | apache-2.0 | Rust | ||
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL. | ||||||||||
Dbal | 9,172 | 47,946 | 3,932 | 8 hours ago | 120 | April 14, 2023 | 206 | mit | PHP | |
Doctrine Database Abstraction Layer | ||||||||||
Sequelpro | 8,842 | 7 months ago | 505 | other | Objective-C | |||||
MySQL/MariaDB database management for macOS |
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.
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 |
---|---|---|---|---|---|---|
7.0.0 | master | >= 2.2.5 | 7.0.x | 6.0+ | - | - |
6.0.2 | 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+ |
Pomelo.EntityFrameworkCore.MySql
is tested against all actively maintained versions of MySQL
and MariaDB
. Older versions (e.g. MySQL 5.6) 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:
Milestone | Status | Release Date |
---|---|---|
8.0.0-preview | Working in progress | - |
7.0.0 | Released | 2023-01-16 |
6.0.2 | Released | 2022-07-24 |
5.0.4 | Released | 2022-01-22 |
3.2.7 | Released | 2021-10-04 |
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" 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>
Ensure that your .csproj
file contains the following reference:
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
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, 31));
// 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.
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
).
Refer to Microsoft's EF Core Documentation for detailed instructions and examples on using EF Core.
Use the EF Core tools to execute scaffolding commands:
dotnet ef dbcontext scaffold "Server=localhost;User=root;Password=1234;Database=ef" "Pomelo.EntityFrameworkCore.MySql"
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.