dbcontext - Does entity framework provide the functionality to update one graph with another dirty graph -


is there method updatecomplexobject in entityframework (6)? have write method myself?

i want method modify/delete/add graph returned zoo.animals(), new graph newsetofanimals.

animals newsetofanimals = getnewsetofanimalsmock();  zoocontext _db = new zoocontext(); // inherits db context zoo zoo = _db.zoo().include(x=>x.animals).first();   _db.updatecomplexobject(zoo.animals(),newsetofanimals);   _db.savechanges(); //the database should consistent after method newsetofanimals graph 


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -