Pomelo.EntityFrameworkCore.MySql 9.0.0-preview.1
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.
Showing the top 20 packages that depend on Pomelo.EntityFrameworkCore.MySql.
Packages | Downloads |
---|---|
MT.PACKAGE.DATA
修改通用查询文件的命名空间
|
440 |
MT.PACKAGE.DATA
修改标的字段类型
|
439 |
MT.PACKAGE.DATA
修改标的字段类型
|
359 |
MT.PACKAGE.DATA
增加数据表字段主体类型标识
|
225 |
MT.PACKAGE.DATA
关联查询合并
|
217 |
MT.PACKAGE.DATA
增加数据表字段主体类型标识
|
127 |
MT.PACKAGE.DATA
修改转换数据表名称以及字段
|
110 |
MT.PACKAGE.DATA
修改通用查询文件的命名空间
|
108 |
MT.PACKAGE.DATA
增加数据表字段主体类型标识
|
85 |
MT.PACKAGE.DATA
添加事件要素分类
|
72 |
MT.PACKAGE.DATA
修改标的字段类型
|
68 |
MT.PACKAGE.DATA
修改通用查询文件的命名空间
|
66 |
MT.PACKAGE.DATA
修改通用查询文件的命名空间
|
60 |
MT.PACKAGE.DATA
使用雪花算法生成主键ID
|
49 |
MT.PACKAGE.ETLEFENTITY
切换数据源为妙探标准数据后,添加对旧合并类型的兼容
|
48 |
MT.PACKAGE.DATA
拆分实体
|
45 |
MT.PACKAGE.DATA
修改通用查询文件的命名空间
|
43 |
MT.PACKAGE.DATA
拆分实体
|
43 |
MT.PACKAGE.DATA
添加数据表主体
|
42 |
MT.PACKAGE.DATA
添加新的条件组合方式
|
28 |
.NET 8.0
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0-preview.1.24081.2 && <= 9.0.0-preview.1.999999)
- MySqlConnector (>= 2.3.5)
Version | Downloads | Last updated |
---|---|---|
9.0.0-preview.1 | 10 | 03/19/2024 |
8.0.2 | 7 | 03/21/2024 |
8.0.1 | 23 | 03/22/2024 |
8.0.0 | 10 | 03/11/2024 |
8.0.0-beta.2 | 1,001 | 11/24/2023 |
8.0.0-beta.1 | 8 | 10/11/2023 |
7.0.0 | 33 | 06/14/2023 |
7.0.0-silver.1 | 10 | 12/23/2023 |
7.0.0-alpha.1 | 12 | 08/01/2023 |
6.0.3 | 9 | 03/19/2024 |
6.0.2 | 6 | 12/30/2023 |
6.0.1 | 3,460 | 06/16/2022 |
6.0.0 | 1,371 | 11/12/2021 |
6.0.0-rc.2 | 9 | 01/17/2024 |
6.0.0-rc.1 | 13 | 11/09/2023 |
6.0.0-preview.7 | 12 | 10/10/2023 |
6.0.0-preview.6 | 12 | 08/20/2023 |
6.0.0-preview.5 | 10 | 08/01/2023 |
6.0.0-preview.4 | 8 | 02/06/2024 |
5.0.4 | 16 | 11/08/2023 |
5.0.3 | 10 | 07/19/2023 |
5.0.2 | 17 | 08/20/2023 |
5.0.1 | 16 | 07/19/2021 |
5.0.0 | 931 | 05/24/2021 |
5.0.0-beta.2 | 12 | 08/19/2023 |
5.0.0-beta.1 | 9 | 11/10/2023 |
5.0.0-alpha.2 | 770 | 12/16/2020 |
5.0.0-alpha.1 | 10 | 10/07/2023 |
3.2.7 | 15 | 09/13/2023 |
3.2.6 | 11 | 07/18/2023 |
3.2.5 | 11 | 10/10/2023 |
3.2.4 | 48 | 12/16/2020 |
3.2.3 | 11 | 12/30/2023 |
3.2.2 | 9 | 10/19/2023 |
3.2.1 | 14 | 10/04/2023 |
3.2.0 | 13 | 08/19/2023 |
3.1.2 | 19 | 04/09/2021 |
3.1.1 | 27 | 06/10/2021 |
3.1.0 | 13 | 10/20/2023 |
3.1.0-rc1.final | 8 | 11/11/2023 |
3.0.1 | 11 | 11/28/2023 |
3.0.0 | 11 | 07/04/2023 |
3.0.0-rc3.final | 8 | 12/30/2023 |
3.0.0-rc2.final | 10 | 10/18/2023 |
3.0.0-rc1.final | 8 | 01/07/2024 |
2.2.6 | 12 | 10/10/2023 |
2.2.0 | 40 | 01/18/2021 |
2.1.4 | 11 | 08/01/2023 |
2.1.2 | 7 | 12/24/2023 |
2.1.1 | 9 | 12/24/2023 |
2.1.0 | 14 | 09/10/2023 |
2.0.1 | 6 | 02/21/2024 |
2.0.0.1 | 21 | 07/18/2023 |
2.0.0 | 10 | 10/23/2023 |
1.1.2 | 12 | 07/31/2023 |
1.1.0 | 11 | 11/29/2023 |
1.0.1 | 12 | 08/19/2023 |
1.0.0 | 12 | 10/10/2023 |