实体框架工作主要密钥问题。 [英] Entity frame Work Primary Key problem.
本文介绍了实体框架工作主要密钥问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好。
为什么无法修改Entity Framework对象中的主键值?
它发出错误消息:
其他信息:属性"PostNo"是对象密钥信息的一部分,无法修改。
谢谢。
解决方案
根据您的描述,我不确定是什么原因引起了这个问题。你能不能提供更多关于这个问题的信息,比如相关的代码片段。
祝你好运,
Cole Wu
Hi.
Why Primary Key value in Entity Framework object can not modified ?
It issues an error message :
Additional information: The property 'PostNo' is part of the object's key information and cannot be modified.
Thanks.
解决方案
Hi,
Based on your description, I am not sure what cause the issue. could you please provide a bit more information about the issue, such as related code snippets.
Best regards,
Cole Wu
这篇关于实体框架工作主要密钥问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文