Can't find ADO.net Entity Data Model template in VS2017

前端 未结 21 3071
我寻月下人不归
我寻月下人不归 2020-11-30 06:16

I was trying to create an ASP.NET MVC web application in Visual Studio 2017. I need to take an EF database-first approach for the work.

Unfortunately I can\'t find t

相关标签:
21条回答
  • 2020-11-30 06:48

    It seems you added "Class Library (.NET Standard)" which is not supporting ADO.net Entity Data Model. You may add "Class Library (.NET Framework)"

    0 讨论(0)
  • 2020-11-30 06:48

    I was having the same problem in VS2017 Community Edition. I had previously tried following but none worked:

    • Installed new feature for "SQL Server Data Tools".
    • Installed NuGet Libraries.

    In the end upon closer investigation I had targeted the wrong
    See Image: you should be selected .NET Framework instead of .NET Standard

    For me changed to the correct project type while Targeting ".NET framework" instead of ".NET Standard" worked.

    0 讨论(0)
  • 2020-11-30 06:48

    Basically what I found is when you choose .Net Core Project EF not shown under data tab. You need to choose .Net Framework Instead of .Net Core. Then you will find all the stuffs under data tab.

    0 讨论(0)
  • 2020-11-30 06:50

    To solve above problem you can modify Visual Studio 2017.You can follow these steps.

    1. Go to Control Panel\Programs\Programs and Features of your computer.

    2. Select Microsoft Visual Studio 2017, right click on it and change.

    3. It will goes to Visual Studio Products window and now click on modify button.

    4. Now tick ASP.Net and web development workload in Web & Cloud section and modify it.

    5. Finally launch Visual Studio 2017.

    0 讨论(0)
  • 2020-11-30 06:50

    Just simply open Visual studio setup. If you already installed choose to modify section and tick .NET desktop development option and install it.

    0 讨论(0)
  • 2020-11-30 06:51
    1. Go to Tools -> Get Tools and features
    2. Select Individual components tab and check Entity Framework 6 tools under SDK's, libraries, and framework section
    0 讨论(0)
提交回复
热议问题