You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have options similar to what we've had in the EF SetInitializer method e.g. DropCreateDatabaseAlways or DropCreateDatabaseIfModelChanges. Something like
dnx . ef migration add NewMigration dnx . ef migration apply -db DropCreateDB
Not sure on the limitations of the command line stuff as i'm new to it, but enjoying it so far, just feels like it's lacking in power currently.
Activity
benmillane commentedon Jun 26, 2015
Would it be possible to have options similar to what we've had in the EF SetInitializer method e.g. DropCreateDatabaseAlways or DropCreateDatabaseIfModelChanges. Something like
dnx . ef migration add NewMigrationdnx . ef migration apply -db DropCreateDBNot sure on the limitations of the command line stuff as i'm new to it, but enjoying it so far, just feels like it's lacking in power currently.
bricelam commentedon Apr 1, 2016
dotnet ef database dropwas added by @laskoviymishka in PR #4657.I attempted to add
Drop-Databasein PR #4907, but ran into issues marshalling script blocks across domain boundaries.To complete this issue, we need to...
Get-DbContextcommand)Drop-Databasecommand. The code in bricelam:fist is a good starting point.natemcmaster commentedon Aug 15, 2016
Added in #6300