如何将项目升级为使用实体框架核心1.1 [英] How can I upgrade my project to using entity framework core 1.1

查看:97
本文介绍了如何将项目升级为使用实体框架核心1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建(人力资源)项目,我首先使用实体​​框架工作6数据库,并且我想将ef版本升级到ef核心1.1这样做的正确方法是什么?



我尝试了什么:



我不知道正确的方法,因为我害怕做错

解决方案

我不会这样做。 EF Core不是升级,而是侧面步骤。它还没有6.1.3的所有功能。



来自实体框架核心1.1计划| .NET博客 [ ^ ]:



在1.1版本发布后,EF Core将取代EF6.x

简短的回答是否定的。 EF6.x仍然是成熟,稳定的数据访问堆栈,并且在EF Core 1.1可用时将继续成为许多应用程序的正确选择。与EF Core 1.1一起,我们也开始着手EF6.2版本 - 我们将很快分享我们的计划。也就是说,一旦1.1发布,EF Core将成为更多应用程序的可行选择。我们的文档提供了有关在EF6.x和EF Core之间进行选择的指导,当1.1发布时,同样的指导将适用。




另请阅读比较EF Core& EF6.x | Microsoft Docs [ ^

I create (Human Resource) project , i use entity frame work 6 database first , and i'd like to upgrade ef version to ef core 1.1 what is the correct way to do that ?

What I have tried:

I don't know the correct way because i afraid to do mistake

解决方案

I wouldn't do that. EF Core is not an upgrade but a side-step. It doesn't yet have all of the features that 6.1.3 has.

From Entity Framework Core 1.1 Plans | .NET Blog[^]:

Will EF Core replace EF6.x after the 1.1 release
The short answer is no. EF6.x is still the mature, stable data access stack and will continue to be the right choice for many applications when EF Core 1.1 is available. Along with EF Core 1.1, we are also starting work on the EF6.2 release – we’ll share our plans on that shortly. That said, EF Core will be a viable choice for more applications once 1.1 is released. Our documentation has guidance on choosing between EF6.x and EF Core, and this same guidance will apply when 1.1 is released.


Also read Compare EF Core & EF6.x | Microsoft Docs[^]


这篇关于如何将项目升级为使用实体框架核心1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆