Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Db connection in Web API with MVC 6

$
0
0

Hello everyone,

I have been building Web API with MVC 6, from this link (http://aspnetmvc.readthedocs.org/projects/mvc/en/latest/getting-started/first-web-api.html) , which doesn't use a database. 
I installed Visual Studio 2015 community edition, ASP.NET 5 /Core 1.0 (by downloading ASP.NET 5 RC) and also EntityFramework 7.
I created project using ASP.NET Web Application project template and then in New Project dialog, selecting Web API under ASP.NET 5 Preview Templates.

But still I was not able to see "ADO.NET Entity Data Model" while adding new item.

From below article, it seems EF7 is not supported in Web API with MVC 6:
http://blogs.msdn.com/b/adonet/archive/2015/07/20/entity-framework-and-visual-studio-2015-rtm.aspx

Can anyone please guide me as to how to make database(Database First) connection in Web API with MVC 6?

Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles