Pomelo.EntityFrameworkCore.MySql
9.0.0
dotnet add package Pomelo.EntityFrameworkCore.MySql --version 9.0.0
NuGet\Install-Package Pomelo.EntityFrameworkCore.MySql -Version 9.0.0
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
<PackageVersion Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" />
paket add Pomelo.EntityFrameworkCore.MySql --version 9.0.0
#r "nuget: Pomelo.EntityFrameworkCore.MySql, 9.0.0"
#:package Pomelo.EntityFrameworkCore.MySql@9.0.0
#addin nuget:?package=Pomelo.EntityFrameworkCore.MySql&version=9.0.0
#tool nuget:?package=Pomelo.EntityFrameworkCore.MySql&version=9.0.0
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0 && <= 9.0.999)
- MySqlConnector (>= 2.4.0)
NuGet packages (888)
Showing the top 5 NuGet packages that depend on Pomelo.EntityFrameworkCore.MySql:
Package | Downloads |
---|---|
EFCore.BulkExtensions.MySql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on MySQL |
|
Pomelo.EntityFrameworkCore.MySql.Design
Package Description |
|
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. |
|
JoreNoe
Redis并发优化 |
GitHub repositories (140)
Showing the top 20 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
|
|
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
|
|
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
|
|
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
|
|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
|
|
Xabaril/AspNetCore.Diagnostics.HealthChecks
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
|
|
cq-panda/Vue.NetCore
(已支持sqlsugar).NetCore、.Net6、Vue2、Vue3、Vite、TypeScript、Element plus+uniapp前后端分离,全自动生成代码;支持移动端(ios/android/h5/微信小程序。http://www.volcore.xyz/
|
|
dotnetcore/DotnetSpider
DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
|
|
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
|
|
borisdj/EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite, Oracle
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
|
linq2db/linq2db
Linq to database provider.
|
|
dotnetcore/osharp
OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
|
|
loic-sharma/BaGet
A lightweight NuGet and symbol server
|
|
liukuo362573/YiShaAdmin
基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观
|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
Version | Downloads | Last Updated | |
---|---|---|---|
9.0.0 | 77,022 | 8/17/2025 | |
9.0.0-rc.1.efcore.9.0.0 | 22,042 | 7/28/2025 | |
9.0.0-preview.3.efcore.9.0.0 | 574,283 | 2/23/2025 | |
9.0.0-preview.2.efcore.9.0.0 | 324,917 | 12/13/2024 | |
9.0.0-preview.1 | 68,196 | 2/28/2024 | |
8.0.3 | 1,488,768 | 3/2/2025 | |
8.0.2 | 15,532,888 | 3/16/2024 | |
8.0.1 | 559,699 | 2/28/2024 | |
8.0.0 | 2,252,901 | 2/13/2024 | |
8.0.0-beta.2 | 879,527 | 11/18/2023 | |
8.0.0-beta.1 | 71,116 | 9/29/2023 | |
7.0.0 | 14,221,616 | 1/16/2023 | |
7.0.0-silver.1 | 271,056 | 12/14/2022 | |
7.0.0-alpha.1 | 176,924 | 11/16/2022 | |
6.0.3 | 684,034 | 3/16/2024 | |
6.0.2 | 16,173,053 | 7/24/2022 | |
6.0.1 | 6,943,388 | 1/22/2022 | |
6.0.0 | 3,284,264 | 11/9/2021 | |
6.0.0-rc.2 | 61,778 | 11/9/2021 | |
6.0.0-rc.1 | 3,096 | 11/9/2021 | |
6.0.0-preview.7 | 26,883 | 10/7/2021 | |
6.0.0-preview.6 | 1,159 | 10/4/2021 | |
6.0.0-preview.5 | 29,599 | 6/27/2021 | |
6.0.0-preview.4 | 15,764 | 5/25/2021 | |
5.0.4 | 1,301,322 | 1/22/2022 | |
5.0.3 | 593,994 | 11/9/2021 | |
5.0.2 | 790,720 | 10/4/2021 | |
5.0.1 | 2,133,447 | 6/27/2021 | |
5.0.0 | 2,037,912 | 4/28/2021 | |
5.0.0-beta.2 | 5,626 | 4/28/2021 | |
5.0.0-beta.1 | 87,545 | 4/22/2021 | |
5.0.0-alpha.2 | 1,663,621 | 11/12/2020 | |
5.0.0-alpha.1 | 85,907 | 11/5/2020 | |
3.2.7 | 1,064,740 | 10/4/2021 | |
3.2.6 | 520,625 | 6/27/2021 | |
3.2.5 | 257,607 | 4/21/2021 | |
3.2.4 | 3,057,139 | 11/2/2020 | |
3.2.3 | 521,475 | 10/13/2020 | |
3.2.2 | 374,074 | 9/30/2020 | |
3.2.1 | 130,436 | 9/23/2020 | |
3.2.0 | 282,879 | 9/16/2020 | |
3.1.2 | 1,715,799 | 7/22/2020 | |
3.1.1 | 4,349,478 | 1/29/2020 | |
3.1.0 | 979,041 | 12/16/2019 | |
3.1.0-rc1.final | 33,380 | 12/6/2019 | |
3.0.1 | 140,320 | 12/4/2019 | |
3.0.0 | 256,831 | 11/18/2019 | |
3.0.0-rc3.final | 43,420 | 11/7/2019 | |
3.0.0-rc2.final | 6,582 | 11/5/2019 | |
3.0.0-rc1.final | 154,493 | 10/6/2019 | |
2.2.6 | 1,731,786 | 10/15/2019 | |
2.2.0 | 4,702,331 | 2/7/2019 | |
2.1.4 | 2,311,424 | 11/30/2018 | |
2.1.2 | 1,248,025 | 9/4/2018 | |
2.1.1 | 774,141 | 7/7/2018 | |
2.1.0 | 227,951 | 7/11/2018 | |
2.0.1 | 1,071,751 | 11/26/2017 | |
2.0.0.1 | 71,384 | 10/27/2017 | |
2.0.0 | 360,566 | 9/19/2017 | |
1.1.2 | 418,591 | 5/6/2017 | |
1.1.0 | 65,703 | 11/29/2016 | |
1.0.1 | 22,204 | 10/29/2016 | |
1.0.0 | 50,212 | 8/5/2016 |