开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜