EF开发时使用db.SaveChanges()报错

版权声明:本文为博主原创文章,转载请注明出处,多谢合作。 https://blog.csdn.net/daze_scarecrow/article/details/81085325

错误为:An error occurred while updating the entries. See the inner exception for details.

原因:主键的类型设置为nvarchar,并且没有指定大小

猜你喜欢

转载自blog.csdn.net/daze_scarecrow/article/details/81085325
今日推荐