Home > DeveloperSection > Blogs > How to add ADO.NET Entity Data Model in MVC4

How to add ADO.NET Entity Data Model in MVC4


ASP.NET MVC ASP.NET MVC 
Ratings:
0 Comment(s)
 3110  View(s)
Rate this:

How to add ADO.NET Entity Data Model in MVC4


In this blog I am trying to explain the concept of how can I add a ADO.NET Entity Data Model in MVC4.

Getting start: -

1.       Create a new blank project in Visual Studio 2012.

2.       Then Right Click on Model Folder which is shows under the solution explorer and select the ADO.NET Entity    Data Model.


3.       After that Give the Appropriate name of Entity Model then Click on OK button.


4.       Now you can see a wizard is show in your screen Click to Next button for next steps.

5.       In next step Click to new connection then populate a new dialog box where is give the connection configuration and after giving connection configuration settings click On OK.

6.       Now click on Yes Radio button and click on Next button.

7.       Now you can see your all tables from your selected database.


8.       Click to Finish button and now goto your solution explorer and expand the model folder you can see MyFirstModal.edmx named file is added.


Don't want to miss updates? Please click the below button!

Follow MindStick