- First – backup the __MigrationHistory table in the database
- Get rid of old migration files
- add-migration using the usual syntax, but with nothing modified
- Remove all of the “Create Table”, etc – the migration should look like
- from there do the update-database -script to generate a sql file
- then just update-database -verbose
- All Fixed
public partial class domorenow : DbMigration
{
public override void Up()
{
<code> } public override void Down() { } }</code>
|
Written By Steve French |
Leave a Reply