我可以使用实体框架6(不是实体框架核心)开发Asp.net核心MVC应用程序吗? [英] Can I develop an Asp.net core MVC application using Entity Framework 6 (not Entity Framework core)?

查看:91
本文介绍了我可以使用实体框架6(不是实体框架核心)开发Asp.net核心MVC应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在新项目中使用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)?

推荐答案

基于

要使用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屋!

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