How to add Entity Data Model

Creating a new web site:

The first step is to create a new Web application:

  1. In Visual Studio, select FileNewWebsite from the main menu.
  2. Choose the choose empty website installed template. Click OK. The solution is created.

Adding an Entity Data Model

You will now add an Entity Data Model to your solution.In the Solution Explorer, right-click your application and select Add,New Item…. From Visual Studio installed templates select ADO.NET Entity Data Model. Click Next.

 You will now see the Entity Data Model Wizard. You will use the wizard to generate the Entity Data Model from the world example database. Select the icon Generate from database. Click Next.

You can now add the connection details to use which data connection should your application use to connect to the database. For this you can click on new connection, you will get one wizard like…

After adding the connection you need to choose which database objects do you want to include in your modal

Now you can get .edmx file as follows…

3 thoughts on “How to add Entity Data Model

  1. Pingback: calling stored procedure using edm « ASP.NET Info

  2. Pingback: Dropdownlist based filtering in MVC 3 using EntityFrameWork(EDM) Modalfirst Method « ASP.NET Info

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s