仅更改子集合时,实体会更新 [英] Entity gets updated when only child collection is changed

查看:71
本文介绍了仅更改子集合时,实体会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

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