All Projects → PomeloFoundation → Pomelo.entityframeworkcore.mysql

PomeloFoundation / Pomelo.entityframeworkcore.mysql

Licence: mit
Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Pomelo.entityframeworkcore.mysql

Efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
Stars: ✭ 10,838 (+416.34%)
Mutual labels:  orm, entity-framework, database, dotnet-core
Ebean
Ebean ORM
Stars: ✭ 1,172 (-44.16%)
Mutual labels:  orm, database, mysql, mariadb
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)
Stars: ✭ 18,168 (+765.56%)
Mutual labels:  orm, database, mysql, mariadb
Linq2db
Linq to database provider.
Stars: ✭ 2,211 (+5.34%)
Mutual labels:  orm, database, mysql, mariadb
Linq2db.entityframeworkcore
Bring power of Linq To DB to Entity Framework Core projects
Stars: ✭ 166 (-92.09%)
Mutual labels:  orm, entity-framework, entity-framework-core, dotnet-core
Typeorm
ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
Stars: ✭ 26,559 (+1165.32%)
Mutual labels:  orm, database, mysql, mariadb
Denodb
MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Stars: ✭ 498 (-76.27%)
Mutual labels:  orm, database, mysql, mariadb
Entityframeworkcore.cacheable
EntityFrameworkCore second level cache
Stars: ✭ 138 (-93.43%)
Mutual labels:  orm, entity-framework, database, dotnet-core
Dbbench
🏋️ dbbench is a simple database benchmarking tool which supports several databases and own scripts
Stars: ✭ 52 (-97.52%)
Mutual labels:  database, mysql, mariadb
Mysqldump Php
PHP version of mysqldump cli that comes with MySQL
Stars: ✭ 975 (-53.55%)
Mutual labels:  database, mysql, mariadb
Ef6
This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.
Stars: ✭ 1,218 (-41.97%)
Mutual labels:  orm, entity-framework, database
Gormt
database to golang struct
Stars: ✭ 1,063 (-49.36%)
Mutual labels:  orm, database, mysql
Hunt Entity
An object-relational mapping (ORM) framework for D language (Similar to JPA / Doctrine), support PostgreSQL and MySQL.
Stars: ✭ 51 (-97.57%)
Mutual labels:  orm, database, mysql
Maikebing.entityframeworkcore.taos
Entity, Framework, EF, Core, Data, O/RM, entity-framework-core,TDengine
Stars: ✭ 113 (-94.62%)
Mutual labels:  orm, entity-framework, entity-framework-core
Mysqlconnector
Async MySQL Connector for .NET and .NET Core
Stars: ✭ 942 (-55.12%)
Mutual labels:  mysql, mariadb, dotnet-core
Entityworker.core
EntityWorker is an object-relation mapper(ORM) that enable .NET developers to work with relations data using objects. EntityWorker is an alternative to entityframwork. is more flexible and much faster than entity framework.
Stars: ✭ 91 (-95.66%)
Mutual labels:  orm, entity-framework, database
Grimoire
Database access layer for golang
Stars: ✭ 151 (-92.81%)
Mutual labels:  orm, database, mysql
Dotnetlabs
.NET Labs -- Show Me the Tips and Tricks and Code
Stars: ✭ 135 (-93.57%)
Mutual labels:  entity-framework, entity-framework-core, dotnet-core
Csharp Datatables Parser
C# Serverside parser for the popuplar jQuery datatables plugin.
Stars: ✭ 119 (-94.33%)
Mutual labels:  entity-framework-core, mysql, dotnet-core
Mysql
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
Stars: ✭ 11,735 (+459.08%)
Mutual labels:  database, mysql, mariadb

Pomelo.EntityFrameworkCore.MySql

Build Status NuGet Pomelo.EntityFrameworkCore.MySql package in pomelo-efcore-public feed in Azure Artifacts Join the chat at https://gitter.im/PomeloFoundation/Home

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 Standard .NET (Core) .NET Framework
6.0.0 master >= 2.0.0 6.0.x N/A 6.0+ N/A
5.0.3 5.0-maint >= 1.3.13 5.0.x 2.1 3.0+ N/A
3.2.7 3.2-maint >= 0.69.10 < 1.0.0 3.1.x 2.0 2.0+ 4.6.1+
2.2.6 2.2-maint >= 0.59.2 < 1.0.0 2.2.6 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.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.

Currently supported versions are:

  • MySQL 8.0
  • MySQL 5.7
  • MariaDB 10.6
  • MariaDB 10.5
  • MariaDB 10.4
  • MariaDB 10.3

Schedule and Roadmap

Milestone Status Release Date
6.0.0 Released 2021-11-09 (see #1413)
5.0.3 Released 2021-11-09
5.0.2 Released 2021-10-04
3.2.7 Released 2021-10-04
3.0.1 Released 2019-12-04
2.2.6 Released 2019-10-15
2.1.4 Released 2018-11-29

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" 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>

Getting Started

1. Project Configuration

Ensure that your .csproj file contains the following reference:

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

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

        // 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].