在VS2017中找不到ADO.net实体数据模型模板 [英] Can't find ADO.net Entity Data Model template in VS2017

查看:613
本文介绍了在VS2017中找不到ADO.net实体数据模型模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2017中创建ASP.NET MVC Web应用程序.我需要采用EF数据库优先的方法进行工作.

I was trying to create an ASP.NET MVC web application in Visual Studio 2017. I need to take an EF database-first approach for the work.

不幸的是,我在数据"模板文件夹中找不到ADO.NET实体数据模型模板:

Unfortunately I can't find the ADO.NET Entity Data Model template in my "Data" template folder:

我尝试了一些对我不起作用的建议.

I have tried following suggestions which didn't work for me.

  1. 通过NuGet安装Entity Framework 6.x
  2. 通过双击最新的msi文件手动安装软件包
  3. 将.NET版本从4.6.x更改为3.5

注意:我的计算机上都安装了VS 2015和VS 2017.只有VS 2017才有问题.

NOTE: I have VS 2015 and VS 2017 both installed on my machine. Only VS 2017 has the problem.

我创建了如下的ASP.NET MVC项目:

I have created the ASP.NET MVC project as follows:

File -> New -> Project -> Web -> ASP.NET Web Application (.NET Framework) -> MVC

有人知道这个问题的解决方案吗?

Does anyone know a solution for this problem?

推荐答案

  1. 转到工具->获取工具和功能
  2. 选择单个组件"选项卡,然后在"SDK,库和框架"部分下检查"Entity Framework 6"工具.

这篇关于在VS2017中找不到ADO.net实体数据模型模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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