EntityFrameworkCore 常用包

记录下常用的 EntityFrameworkCore 包

Nuget 包管理技巧

  • 我们可以直接添加以下要使用的包,会自动安装并引用需要的依赖包,而不用手动一个个添加.

Microsoft.EntityFrameworkCore.Tools

添加该工具包后,我们就可以在 PMC(NuGet Package Manager Console)中使用Add-Migration & Update-Database & Scaffold-DbContext等命令进行数据库迁移和更新操作.

Microsoft.EntityFrameworkCore.Tools.DotNet

添加该工具包后,我们就可以使用在命令行中使用dotnet-ef命令来进行数据库迁移和更新操作,注意这里的命令行是跨平台下的任意命令行,比如:Windows/Linux/MacOS.

SqlServer

Microsoft.EntityFrameworkCore.SqlServer

Sqlite

Microsoft.EntityFrameworkCore.Sqlite

InMemory

Microsoft.EntityFrameworkCore.InMemory

MySql

Nuget:Pomelo.EntityFrameworkCore.MySql

Github#入门指南

Oracle

Oracle 针对 .Net 的开发团队还在评估是否计划支持 EntityFrameworkCore,但还没有宣布任何消息,大家可以到这里Oracle EF Core Provider feature request提议下以促进开发和支持进度.

PostgreSQL

Npgsql.EntityFrameworkCore.PostgreSQL

参考文档

转载于:https://my.oschina.net/taadis/blog/916712

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Summary Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. Following the crystal-clear explanations, real-world examples, and around 100 diagrams, you'll discover time-saving patterns and best practices for security, performance tuning, and unit testing. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology There's a mismatch in the way OO programs and relational databases represent data. Enti ty Framework is an object-relational mapper (ORM) that bridges this gap, making it radically easier to query and write to databases from a .NET application. EF creates a data model that matches the structure of your OO code so you can query and write to your database using standard LINQ commands. It will even automatically generate the model from your database schema. About the Book Using crystal-clear explanations, real-world examples, and around 100 diagrams, Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. You'l start with a clear breakdown of Entity Framework, long with the mental model behind ORM. Then you'll discover time-saving patterns and best practices for security, performance tuning, and even unit testing. As you go, you'll address common data access challenges and learn how to handle them with Entity Framework. What's Inside Querying a relational database with LINQ Using EF Core in business logic Integrating EF with existing C# applications Applying domain-driven design to EF Core Getting the best performance out of EF Core Covers EF Core 2.0 and 2.1

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值