我更新数据时如何解决此错误. [英] How to solve this error when i Update the data.

查看:99
本文介绍了我更新数据时如何解决此错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要刷新的对象集合中索引0处的元素的EntityKey属性值为空,或者未附加到此ObjectStateManager.

The element at index 0 in the collection of objects to refresh has a null EntityKey property value or is not attached to this ObjectStateManager.

推荐答案

EntityKeyObjectStateManager听起来像Entity Framework,但是我没有看到该错误,没有源代码也不会造成猜测,但是google您的问题会产生大量讨论该错误消息的结果.
^ ]
EntityKey and ObjectStateManager sounds like Entity Framework, well I''ve not seen that error and won''t hazard a guess without source code but google your question yields alot of results discussing that error message.
Google[^]


这篇关于我更新数据时如何解决此错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆