Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shashank-shekhar/0d2a6724214cd1f80ad8de9d4c2af19f to your computer and use it in GitHub Desktop.
Save shashank-shekhar/0d2a6724214cd1f80ad8de9d4c2af19f to your computer and use it in GitHub Desktop.
dotnet new classlib -f netcoreapp3.1 -o Project.Name
dotnet add package Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite -v 3.1.19
dotnet add package Microsoft.EntityFrameworkCore.SqlServer -v 3.1.19
dotnet add package Microsoft.EntityFrameworkCore.Design -v 3.1.19
dotnet ef dbcontext scaffold "Server=.;Database=<DataBase>;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Models --schema dbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment