开发者

Entity Framework 4.1 detach scenario cascading update

I have worked with EF CTP4 and there wasnt any easy way how to perform cascading udate in detached scenario. Example: I have tree of elements which gets send from server to client (it gets detached). Client modifies this tree (properties and relations) and sends it back to server. Now I want to attach this tree and save it without much hustle.

My question is this posible in EF CTP5 开发者_运维知识库and if not is it planned? Im wondering if EF will reach maturity of NHibernate where this is possible (where I can configure if I want cascading delete/update-save/none/etc).


No it is still not possible and as I know it is not planned. When working with detached entity graphs you are responsible for telling EF what has changed. EF 4.1 is just a wrapper for EF 4 so this answer is valid for DbContext API as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜