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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -