![]() |
VOOZH | about |
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" />Directory.Packages.props
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" />Project file
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.0Install as a Cake Addin
#tool nuget:?package=Pomelo.EntityFrameworkCore.MySql&version=9.0.0Install as a Cake Tool
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.
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()
);
}
}
Newtonsoft.Json and System.Text.Json)Pomelo.EntityFrameworkCore.MySql is released as open source under the MIT license.
Bug reports and contributions are welcome at our GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
|
|
OO.Data
Data Entity base types and declarations for EasyDataCore infrastructure |
|
|
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. |
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.
|
|
|
elsa-workflows/elsa-core
The Workflow Engine for .NET
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
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
|
|
|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
|
Xabaril/AspNetCore.Diagnostics.HealthChecks
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
|
|
|
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
|
|
|
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 框架更易于应用到实际项目开发中。
|
|
|
SeriaWei/ZKEACMS
ZKEACMS build with .Net 8 (.Net CMS)可视化设计在线编辑内容管理系统
|
|
|
ErsatzTV/legacy
Open-source platform that transforms your personal media library into live, custom TV channels.
|
|
|
loic-sharma/BaGet
A lightweight NuGet and symbol server
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 9.0.0 | 4,378,264 | 8/17/2025 | |
| 9.0.0-rc.1.efcore.9.0.0 | 110,870 | 7/28/2025 | |
| 9.0.0-preview.3.efcore.9.0.0 | 1,190,146 | 2/23/2025 | |
| 9.0.0-preview.2.efcore.9.0.0 | 538,925 | 12/13/2024 | |
| 9.0.0-preview.1 | 91,197 | 2/28/2024 | |
| 8.0.3 | 4,852,456 | 3/2/2025 | |
| 8.0.2 | 25,784,081 | 3/16/2024 | |
| 8.0.1 | 747,248 | 2/28/2024 | |
| 8.0.0 | 3,729,523 | 2/13/2024 | |
| 8.0.0-beta.2 | 1,052,011 | 11/18/2023 | |
| 8.0.0-beta.1 | 87,663 | 9/29/2023 | |
| 7.0.0 | 17,803,394 | 1/16/2023 | |
| 7.0.0-silver.1 | 284,930 | 12/14/2022 | |
| 7.0.0-alpha.1 | 185,158 | 11/16/2022 | |
| 6.0.3 | 1,006,366 | 3/16/2024 | |
| 6.0.2 | 17,438,166 | 7/24/2022 | |
| 6.0.1 | 7,429,970 | 1/22/2022 | |
| 6.0.0 | 3,613,538 | 11/9/2021 | |
| 5.0.4 | 1,494,471 | 1/22/2022 | 5.0.4 is deprecated because it is no longer maintained. |
| 5.0.3 | 630,808 | 11/9/2021 | 5.0.3 is deprecated because it is no longer maintained. |