获取实体更改? [英] Get entity changes?
本文介绍了获取实体更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能确切地知道在EF4和POCO模式下对实体做了哪些更改?
我知道我可以通过调用找出已更改/删除/更新的实体等检测变化并从objectstatemanager获取条目。
但是我还能以某种方式找到个别变化吗?
我的博客:http://www.RogerAlsing.com
Is it possible to find out exactly what changes have been made to an entity in EF4 and POCO mode?
I know I can find out what entities have been changed/deleted/updated etc by calling detect changes and get the entries from the objectstatemanager.
But can I also find the individual changes somehow?
My Blog: http://www.RogerAlsing.com
推荐答案
当您从ObjectStateManager获取条目时,您还可以从相同的ObjectStateEntry实例获取有关哪些属性已更改以及原始值的信息。 br /> - Danny
When you get the entries from the ObjectStateManager, you can also get information about which properties have changed and the original values all from the same ObjectStateEntry instances.
- Danny
这篇关于获取实体更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文