Re-create table with Entity Framework 5 and nuget

后端 未结 3 743
离开以前
离开以前 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:37

    You could just drop the database then from the package manager console run the 'update-database' command, all would be recreated including whatever updates you made.

提交回复
热议问题