entity framework migration sql script code example
Example 1: ef migrations
PM> add-migration MyFirstMigration
PM> Update-Database
Example 2: ef rollback migration
//EF 6.4
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"
PM> add-migration MyFirstMigration
PM> Update-Database
//EF 6.4
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"