我可以使用实体框架 6(不是实体框架核心)开发 Asp.net 核心 MVC 应用程序吗? [英] Can I develop an Asp.net core MVC application using Entity Framework 6 (not Entity Framework core)?
问题描述
我想在我的新项目中使用 ASP.NET Core
,因为我听说它更快.但是,该项目将使用广泛的数据库访问功能,其中一些Entity Framework Core
不支持.我想知道,是否可以使用 Entity Framework 6
(不是 Entity Framework Core
)开发 ASP.NET Core MVC
应用程序?
I want to use ASP.NET Core
with my new project as I heard that it's faster. However, the project will use extensive database accessing feature of which some are not supported by Entity Framework Core
. I want to know, is it possible to develop an ASP.NET Core MVC
application using Entity Framework 6
(not Entity Framework Core
)?
推荐答案
基于 ASP.NET Core 的文档,它说:
要使用 Entity Framework 6,您的项目必须针对完整的 .NET Framework,因为 Entity Framework 6 不支持 .NET Core.如果您需要跨平台功能,则需要升级到实体框架核心.
To use Entity Framework 6, your project has to compile against the full .NET Framework, as Entity Framework 6 does not support .NET Core. If you need cross-platform features you will need to upgrade to Entity Framework Core.
这篇关于我可以使用实体框架 6(不是实体框架核心)开发 Asp.net 核心 MVC 应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!