开发者

Entity state always unchanged if relation is multiplicity on both ends?

开发者 https://www.devze.com 2023-01-16 22:11 出处:网络
I have the multiplicity relation on both ends in object graph. Let say I haveProjects<---->Users. The issue is that when adding user to project project.Users.Add(user)

I have the multiplicity relation on both ends in object graph. Let say I have Projects<---->Users. The issue is that when adding user to project project.Users.Add(user) or reverse none of the entities(project, user) gets marked as modified. The ObjectContext.Commit return 1 change happened.

The question is whether it's supposed to be so or I did something wrong. Ho开发者_如何学运维w can I track this change not listening EntityCollection?

thanks in advance

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号