No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

后端 未结 11 1580
孤城傲影
孤城傲影 2020-12-02 15:51

I\'m having a lot of issues with the templates of Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

I noticed that other people had these problems, and asked

相关标签:
11条回答
  • 2020-12-02 15:58

    My solution was that my brand new project was inexplicably set to use .NET 2.0 in the project settings. Once I set it to 4.5, the template appeared.

    0 讨论(0)
  • 2020-12-02 16:01

    The template could be downloaded from the following link.

    microsoft.com ADO.net 4.1 download

    0 讨论(0)
  • 2020-12-02 16:04

    When you install Visual Studio there is separate component called Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools. You can check that this component is installed in your computer simply by checking installed programs. If the component is not installed you must probably install it again from VS intallation media.

    You mentioned that you have a Professional version but still I would expect that your Add New Item will contain much more features - I don't see groups for Windows Forms, WPF and Workflow - all valid groups. It looks like your installation is somehow incomplete or you are using some project template that perhaps don't offer all groups.

    Installing EF 4.1 will not add necessary parts from EF 4 which are part of VS installation. EF 4.1 has these features as prerequisity.

    0 讨论(0)
  • 2020-12-02 16:05

    Open the install media for VS2010 and browse to ":\WCU\EFTools". Her you will find two files:

    ADONETEntityFrameworkTools_enu.msi

    ADONETEntityFrameworkTools_enu.cab

    1. Copy those files to a folder on your PC.
    2. Create a log file in the folder - for instance with the name "Log.txt"
    3. Open a cmd prompt (possibly run the cmd prompt as administrator) and navigate to the folder with the msi and cap files.
    4. Run this command:

      ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 /log "Log.txt"

    It will take a while to install so be patient.

    The installation should now be visible in "Control Panel -> Installed Programs" as "Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools".

    The items template should be visible in Visual Studio when adding a new item to a project. (Add New Item->Data->ADO.NET Entity Data Model).

    More info here: http://msdn.microsoft.com/en-us/library/ee225240.aspx

    0 讨论(0)
  • 2020-12-02 16:11

    if you already installed full VS and template not appears try to run VS2010 setup and and click Repair/Reinstall and after that processing finished,restart system.

    0 讨论(0)
  • 2020-12-02 16:12

    try Restore Default Project Templates.

    0 讨论(0)
提交回复
热议问题