locked
Asp.Net Core Web Api project missing ADO.Net Entity Data Model template RRS feed

  • Question

  • User919378809 posted

    Hi All,

    I created a web api application using Asp.Net Core 2 and trying to add ADO.Net Entity Data Model in my application (database first approach).  But it is missing in web api application template.

    I checked it in the Visual Studio 2017 installer;  It is not listed in the "Workloads" but it is selected in "Individual Components".

    How will I bring it into Asp.Net Core Web Api application?

    Thanks

    Selvakumar

    Tuesday, January 2, 2018 2:31 AM

All replies

  • User283571144 posted

    Hi Selvakumar Ramachandran,

    As far as I know, the EF core has removed the ADO.Net Entity Data Model template in the asp.net core now.

    If you want to use EF Core on ASP.NET Core with an Existing Database, you should  run Scaffold-DbContext command in the Package Manager Console.

    More details, you could refer to this article.

    Best Regards,

    Brando

    Tuesday, January 2, 2018 7:18 AM