小鲁班

Unable to track an entity of type 'xxx' because primary key property 'Id' is null.

电脑版发表于:2020/5/6 14:27

这个是ef中添加报错,id如果是自增的话id不需要赋值,如果id不是自增就必须要赋值,这种报错的情况就是id不是自增

关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢