0
点赞
收藏
分享

微信扫一扫

To change the IDENTITY property of a column, the column needs to be dropped and recreated


To change the IDENTITY property of a column, the column needs to be dropped and recreated

自己修改了下主键。结果报错

Dotnet Core 


解决方法是:

删掉 

To change the IDENTITY property of a column, the column needs to be dropped and recreated_解决方法

还有数据库里的:

To change the IDENTITY property of a column, the column needs to be dropped and recreated_数据库_02

然后重新生成一下就好了

举报

相关推荐

0 条评论