Can't find ado.net entity data model missing visual studio 2019.

Raja Ganapathy 1 Reputation point
2021-04-14T10:18:01.687+00:00

i have installed Entityframework 6 also but ado.net entity data model not visible

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
297 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Roger 26 Reputation points
    2021-05-29T01:45:06.41+00:00

    you can't make an ADO.Net Entity Data Model with an interface with .NET Core, Only with .NET Framework.

    5 people found this answer helpful.

  2. Temiya Ahmad 21 Reputation points
    2021-10-01T17:51:49.653+00:00

    I solved the same problem by following these:

    1)While Creating project don't select class Library(.NET Standard) Choose Class Library (.NET Framework)

    2)Choose ASP.NET Web Application (.NET Framework)

    3) Go to Tools -> Get Tools and features.
    Select Individual components tab and check Entity Framework 6 tools under SDK's, libraries, and framework section

    4)Remember you can't make an ADO.net Entity Data Model with an interface with .NET Core, its only possible with .NET Framework.

    Hope these will solve yours too.

    4 people found this answer helpful.

  3. Yihui Sun-MSFT 801 Reputation points
    2021-04-15T09:33:48.087+00:00

    Hi @Raja Ganapathy ,

    but ado.net entity data model not visible

    Do you mean you can't find "Ado.Net Entity Data Model"?

    • You can right-click on the Models folder and select Add New Item->Data->Ado.Net Entity Data Model.

    88211-capture.png


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Best Regards,
    YihuiSun

    2 people found this answer helpful.

  4. Duane Arnold 3,211 Reputation points
    2021-04-15T08:57:36.753+00:00

    @Raja Ganapathy

    Why would you need to install EF 6 in regards to using VS2019?

    I created a .NET Framework 4.7 WebAPI project, added a 'new item' to project, selected 'Data' and selected 'Data Model' that took me through the wizard of creating a EF model from an existing database, which I would assume it would be some EF 6.x version.

    Maybe in your creating of the assumed WebAPI project, you selected a .NET Core framework by mistake, and EF Core doesn't use the 'entity data model' that can be selected from 'Data'.

    0 comments No comments