把主键从long 改为int 居然要删掉重建,不知道有没有更好的办法。

删除带外键的表:

Add-Migration name

修改生成的文件,主要把dbo.删除

然后update-database