ADO.NET 实体数据模型缺少 Visual Studio 2015 社区 [英] ADO.NET Entity Data Model missing Visual Studio 2015 community

查看:43
本文介绍了ADO.NET 实体数据模型缺少 Visual Studio 2015 社区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在启动一个新的 ASP.NET 5 预览模板来进行客户端开发.

我有一个想要使用 Web API 和实体框架访问的数据库 (MS SQL).

在我的 Models 文件夹中,我像以前一样,添加一个新项目,我想添加 ADO.NET 实体数据模型,但它不是在那里.

我在这里错过了什么?

更新

这是我尝试向项目添加新项目时看到的唯一内容.客户端和服务器端.

解决方案

经过大量研究,我发现最近微软迁移到开源世界(从 Asp.net5 开始)存在一些兼容性问题,我从

I am starting a new ASP.NET 5 Preview template to play with client side development.

I have a database ( MS SQL ) that I want to access using the Web API and Entity Framework.

In my Models folder I do like I am used to do, add a new item and I want to add the ADO.NET Entity Data Model but it isn't there.

What am I missing here?

UPDATE

This is the only thing I see when I try to add a new item to the project. Client side and server side.

解决方案

After a lot of research, I found out that there are some compatibility issues where come from the recent Microsoft migration to open source world (since Asp.net5) that I obtained from Data Points - The EF6, EF7 and ASP.NET 5 Soup MSDN Article. Read the full article please.

So if you wanna have both EF6 and Asp.net5, consider the article tips. And if you don't persist in using Asp.net5, simply use Asp.net4.5 (following image) which have Ado.net Data Model in Add New Item dialog (I tested its availability with my Visual Studio Enterprise).

这篇关于ADO.NET 实体数据模型缺少 Visual Studio 2015 社区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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