Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Visual studio 2008 SP1" ADO.NET Entity Data Model template not found

I have installed Visual Studio Team System 2008 Architecture version: 9.0.30729.1 SP and Microsoft Net Framework 3.5 SP1.

When I'm going to add a new item I can't find ADO.NET Entity Data Model template.

What's happening?

Thanks!

like image 403
VansFannel Avatar asked Mar 09 '09 19:03

VansFannel


People also ask

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

Create the ADO.NET Entity Data ModelRight-click on your project in the Solution Explorer window and select the menu option Add -> New Item. In the Add New Item dialog, select the Data category. Select the ADO.NET Entity Data Model template, give the Entity Data Model the name Northwind. edmx, and click the Add button.

What is ado net entity data model?

The Entity Data Model (EDM) is a set of concepts that describe the structure of data, regardless of its stored form. The EDM borrows from the Entity-Relationship Model described by Peter Chen in 1976, but it also builds on the Entity-Relationship Model and extends its traditional uses.

How do I open an EDMX diagram?

Right-click on your EDMX file, select Open With…, then select XML (Text) Editor. Boom, there is your entire EDMX file as Visual Studio and . Net sees it, in all its XML wonderfulness.

What is Entity Framework in programming?

Entity Framework (EF) is an object-relational mapper for . NET developers that allows them to work with relational data using domain-specific objects. It eliminates the majority of the data-access code that developers must routinely write.


3 Answers

Make sure you have VS2008 sp1 (http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en). I had .Net Framework 3.5 SP1 installed but not the VS2008 SP1. ...at least that is what I was doing wrong.

like image 75
Your Friend Ken Avatar answered Sep 22 '22 00:09

Your Friend Ken


SUMMARY There seem to be multiple causes of this problem as many of the other answers indicate.

  1. Make sure Framework 3.5 sp1 is installed first
  2. Make sure Visual Studio 2008 sp1 is installed
  3. Makes sure the project targets the 3.5 framework
  4. A data model is added to an existing project, not a separate project type

END SUMMARY

You may be looking at the wrong level. An Entity Framework Data Model is something that you add to a project, it is not a separate project type.

Right-click on an existing project Select Add, New Item

And then select ADO.Net Entity Data Model...

like image 32
TGnat Avatar answered Sep 20 '22 00:09

TGnat


So, to recap:

Requires Visual Studio 2008 Service Pack 1 (includes .Net Framework 3.5 SP1)

  • You must be working with a .Net Framework 3.5 project
  • In the Solution Explorer, right click and select "Add"->"New Item"
  • For ease of finding it, select the "Data" item in the left hand side treeview
  • Select ADO.NET Entity Data Model and specify a name in the textbox below
  • like image 34
    RobS Avatar answered Sep 21 '22 00:09

    RobS