none
How to add the Entity Data Model in ASP.NET 5 Template RRS feed

  • Question

  • I am trying to add ADO.NET Entity Data Model in asp.net 5 template project in Visual Studio 2015 but didn't find it.

    How to solve this?

    Thursday, June 9, 2016 4:07 PM

Answers

  • Hi Crazy_Tech,

    >> I am trying to add ADO.NET Entity Data Model in asp.net 5 template project in Visual Studio 2015 but didn't find it.

    If you have an existing database, we could use the following command to create data model.

    Scaffold-DbContext "'Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;'" Microsoft.EntityFrameworkCore.SqlServer

    For more information, please refer to:

    https://docs.efproject.net/en/latest/platforms/aspnetcore/existing-db.html

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 10, 2016 9:19 AM
    Moderator

All replies