Reputation: 3216
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).
Upvotes: 1
Views: 819
Reputation: 364279
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.
Upvotes: 2