简体   繁体   English

对Asp.Net Core的EntityFramework支持

[英]EntityFramework support for Asp.Net Core

I am able to add EntityFramework to ASP.NET Core application that runs on top of .NET Framework (not on .Net Core). 我能够将EntityFramework添加到在.NET Framework(而不是.Net Core)上运行的ASP.NET Core应用程序中。 The CR operations are working fine, but not able to enable migration since I am using Code First approach. CR操作工作正常,但是由于我使用的是Code First方法,因此无法启用迁移。 But as per the link Limited support for EF6 in ASP Net Core 但是根据链接,ASP Net Core中对EF6的支持有限

there are some limitations. 有一些限制。 Is there any work around for this to make happen? 有什么解决办法可以做到这一点?

Any help would be deeply appreciated. 任何帮助将不胜感激。 Thank you 谢谢

There is a third party tool that enables EF 6 Migrations with .NET Core https://github.com/mrahhal/Migrator.EF6 有一个第三方工具可通过.NET Core https://github.com/mrahhal/Migrator.EF6启用EF 6迁移。

More information about EF6 with ASP.NET Core here: https://docs.microsoft.com/en-us/aspnet/core/data/entity-framework-6 有关带有ASP.NET Core的EF6的更多信息,请访问: https : //docs.microsoft.com/zh-cn/aspnet/core/data/entity-framework-6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM