vince-coder
6/10/2019 - 7:28 AM

.Net Core CLI Entity Framework Core

Drop Database

    dotnet ef database drop

Update Database

    dotnet ef database update

Information about DBContext

    dotnet ef dbcontext info

List DBContext

    dotnet ef dbcontext list

Add Migrations

    dotnet ef migrations add 'Name migrations'

List migrations

    dotnet ef migrations list

Remove migrations (Remove the last migration)

    dotnet ef migrations remove

Generate a SQL script from migrations

    dotnet ef migrations script