Re-create table with Entity Framework 5 and nuget

后端 未结 3 760
离开以前
离开以前 2020-12-28 08:52

I am using Code First to create a table.

I created the class, the mapping file and issued the add-migration command in nuget and then the update-database command

3条回答
  •  一个人的身影
    2020-12-28 09:34

    I found my answer.

    I deleted the row in [dbo].[__MigrationHistory] that corresponded to my Migration

    I then deleted the new migration file

    I re-ran add-migration

    and then re-ran update-database -verbose

提交回复
热议问题