Pomelo.EntityFrameworkCore.MySql
8.0.0-beta.1
See the version list below for details.
Requires NuGet 3.6 or higher.
dotnet add package Pomelo.EntityFrameworkCore.MySql --version 8.0.0-beta.1
NuGet\Install-Package Pomelo.EntityFrameworkCore.MySql -Version 8.0.0-beta.1
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.0-beta.1" />
paket add Pomelo.EntityFrameworkCore.MySql --version 8.0.0-beta.1
#r "nuget: Pomelo.EntityFrameworkCore.MySql, 8.0.0-beta.1"
// Install Pomelo.EntityFrameworkCore.MySql as a Cake Addin #addin nuget:?package=Pomelo.EntityFrameworkCore.MySql&version=8.0.0-beta.1&prerelease // Install Pomelo.EntityFrameworkCore.MySql as a Cake Tool #tool nuget:?package=Pomelo.EntityFrameworkCore.MySql&version=8.0.0-beta.1&prerelease
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
andSystem.Text.Json
) - Spatial support
- High performance
Related Packages
- JSON support
- Spatial support
- Other Packages
License
Pomelo.EntityFrameworkCore.MySql is released as open source under the MIT license.
Feedback
Bug reports and contributions are welcome at our GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.0-rc.1.23419.6)
- MySqlConnector (>= 2.3.0-beta.3)
NuGet packages (789)
Showing the top 5 NuGet packages that depend on Pomelo.EntityFrameworkCore.MySql:
Package | Downloads |
---|---|
Microting.eForm
Package Description |
|
Pomelo.EntityFrameworkCore.MySql.Design
Package Description |
|
Util.Datas
Util.Datas是Util应用框架的数据访问类库。 Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。 |
|
Pomelo.EntityFrameworkCore.MySql.NetTopologySuite
NetTopologySuite support for Pomelo's MySQL provider for Entity Framework Core. |
|
Pomelo.EntityFrameworkCore.MySql.Json.Microsoft
JSON support using System.Text.Json for Pomelo's MySQL provider for Entity Framework Core. |
GitHub repositories (124)
Showing the top 5 popular GitHub repositories that depend on Pomelo.EntityFrameworkCore.MySql:
Repository | Stars |
---|---|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
|
|
elsa-workflows/elsa-core
A .NET workflows library
|
Version | Downloads | Last updated | |
---|---|---|---|
9.0.0-preview.1 | 17,344 | 2/28/2024 | |
8.0.2 | 4,394,930 | 3/16/2024 | |
8.0.1 | 340,195 | 2/28/2024 | |
8.0.0 | 1,160,205 | 2/13/2024 | |
8.0.0-beta.2 | 639,237 | 11/18/2023 | |
8.0.0-beta.1 | 48,000 | 9/29/2023 | |
7.0.0 | 10,749,556 | 1/16/2023 | |
7.0.0-silver.1 | 236,338 | 12/14/2022 | |
7.0.0-alpha.1 | 169,761 | 11/16/2022 | |
6.0.3 | 217,089 | 3/16/2024 | |
6.0.2 | 14,146,669 | 7/24/2022 | |
6.0.1 | 6,386,589 | 1/22/2022 | |
6.0.0 | 2,915,409 | 11/9/2021 | |
6.0.0-rc.2 | 61,603 | 11/9/2021 | |
6.0.0-rc.1 | 2,887 | 11/9/2021 | |
6.0.0-preview.7 | 23,782 | 10/7/2021 | |
6.0.0-preview.6 | 974 | 10/4/2021 | |
6.0.0-preview.5 | 27,157 | 6/27/2021 | |
6.0.0-preview.4 | 15,369 | 5/25/2021 | |
5.0.4 | 1,117,402 | 1/22/2022 | |
5.0.3 | 553,112 | 11/9/2021 | |
5.0.2 | 723,106 | 10/4/2021 | |
5.0.1 | 2,039,555 | 6/27/2021 | |
5.0.0 | 1,868,465 | 4/28/2021 | |
5.0.0-beta.2 | 5,433 | 4/28/2021 | |
5.0.0-beta.1 | 78,011 | 4/22/2021 | |
5.0.0-alpha.2 | 1,580,509 | 11/12/2020 | |
5.0.0-alpha.1 | 77,848 | 11/5/2020 | |
3.2.7 | 954,009 | 10/4/2021 | |
3.2.6 | 507,179 | 6/27/2021 | |
3.2.5 | 247,244 | 4/21/2021 | |
3.2.4 | 2,971,804 | 11/2/2020 | |
3.2.3 | 489,842 | 10/13/2020 | |
3.2.2 | 361,027 | 9/30/2020 | |
3.2.1 | 122,320 | 9/23/2020 | |
3.2.0 | 272,816 | 9/16/2020 | |
3.1.2 | 1,641,026 | 7/22/2020 | |
3.1.1 | 4,248,949 | 1/29/2020 | |
3.1.0 | 927,006 | 12/16/2019 | |
3.1.0-rc1.final | 31,970 | 12/6/2019 | |
3.0.1 | 125,735 | 12/4/2019 | |
3.0.0 | 247,830 | 11/18/2019 | |
3.0.0-rc3.final | 41,365 | 11/7/2019 | |
3.0.0-rc2.final | 6,074 | 11/5/2019 | |
3.0.0-rc1.final | 153,304 | 10/6/2019 | |
2.2.6 | 1,683,571 | 10/15/2019 | |
2.2.0 | 4,636,837 | 2/7/2019 | |
2.1.4 | 2,281,093 | 11/30/2018 | |
2.1.2 | 1,228,913 | 9/4/2018 | |
2.1.1 | 759,165 | 7/7/2018 | |
2.1.0 | 216,624 | 7/11/2018 | |
2.0.1 | 1,053,216 | 11/26/2017 | |
2.0.0.1 | 65,729 | 10/27/2017 | |
2.0.0 | 344,082 | 9/19/2017 | |
1.1.2 | 329,283 | 5/6/2017 | |
1.1.0 | 61,280 | 11/29/2016 | |
1.0.1 | 18,013 | 10/29/2016 | |
1.0.0 | 31,633 | 8/5/2016 |