0
votes

I want to start a new asp.net core MVC web project, but i am but sure if i can follow the database first approach? by creating the database inside my sql server >> then map the database inside my application using entity framework (as we used to do in asp.net mvc-5)? Thanks

1
For Existing database in EF Core, you could refer to these tutorials : learnentityframeworkcore.com/walkthroughs/existing-database or entityframeworktutorial.net/efcore/… - Xueli Chen

1 Answers

0
votes

yes u can use something like this on Package Manager Console or any other Console

dotnet ef dbcontext scaffold "Server=IPADDRESS;Database=DBNAME;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer --context-dir Context -o Entities -f