仅更改子集合时,实体会更新 [英] Entity gets updated when only child collection is changed
问题描述
我正在使用Entity Framework和STE's。
当我加载相关的entites并在其中一个实体(在关系的多端)上进行更改时,那么在更新更改时,数据行都会在数据库中更新(这可以通过激活更新触发器和更改
时间戳列来观察)。
这可以以某种方式被抑制吗?
I'm working with Entity Framework and STE's.
When I load related entites and make changes in one of the entities (that on the many-end of the relation), then while updating the changes both data rows get updated in the database (this is observalbe by the fireing of an update trigger and of change of a
timestamp column).
Can this be supressed somehow?
推荐答案
Hello Chrsitof,
Hello Chrsitof,
您能否更具体地说明您的问题?你是什么意思"两个数据行"?你在数据库中使用更新触发器吗?请随时发布一个代码段!
Can you please be more specific about your issue? What do you mean "both data rows"? Do you use an update trigger in database? Please post a code snippet whenever you feel free!
非常感谢!
这篇关于仅更改子集合时,实体会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!