EF Core Framework example
This is a simple project that has dbcontext and migrations in it.
Dotnet ef migrations add {name of migration}
Dotnet ef database update
Add these pacakges:
Install-package Microsoft.EntityFrameworkCore.SqlServer
install-package Microsoft.EntityFrameworkCore.Tools
Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design
Then run this command
Scaffold-DbContext "{your server connection}" Microsoft.entityFrameworkCore.SqlServer -OutputDIr Models