Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADO.NET Entity Data Model missing Visual Studio 2015 community

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.

enter image description here

like image 765
Mivaweb Avatar asked Sep 07 '15 11:09

Mivaweb


People also ask

How do I add ado net entity data model in Visual Studio?

Adding an Entity Data Model To add an Entity Data Model to your solution, do the following: In the Solution Explorer, right-click your application and select Add and then New Item. From Visual Studio installed templates, select ADO.NET Entity Data Model (see the figure that follows). Click Add.

Is ADO.NET supported by Visual Studio?

ADO.NET, for WindowsInstall Visual Studio Community, or a similar integrated development environment (IDE) for writing and compiling C# source code. Microsoft now provides Visual Studio Community for free.


3 Answers

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).

enter image description here

like image 51
Amirhossein Mehrvarzi Avatar answered Sep 18 '22 22:09

Amirhossein Mehrvarzi


  1. Right click on project
  2. Choose Add and then New Item (or Simply press Ctrl+Shift+A)
  3. You will see a Data section which you can find what you are looking for

Or You can find another solution Here: Missing ADO.NET entity data model template from visual studio 2012 professional

like image 27
Inside Man Avatar answered Sep 17 '22 22:09

Inside Man


May sound stupid, but since I got caught with this, it might be someone else's issue too...

In VS 2015, there are 2 project templates called Class Library... one being in Windows and one in the Web and having (package) suffix. Apparently, besides misleading name they have nothing to do with each other and the second one clearly is not made to support EF models... Make sure you have created a proper project type or open a working solution made with different VS version.

__

Also this might help. I have it already installed, so not sure if it affects my configuration or not (shouldnt as EF tools are supposed to be shipped already with VS 2015):

http://thedatafarm.com/data-access/installing-ef-power-tools-into-vs2015/

like image 42
mikus Avatar answered Sep 16 '22 22:09

mikus