c# - Updating many DbSet objects at one time -


i coding mvc 5 internet application , using entity framework 6. have asset object can referenced in many image objects.

when edit asset object, need update datetime object stored in referenced image objects. if there 50 image objects need updated, can in 1 database transaction rather retrieving image objects, looping through each image object, updating datetime object , updating each image object in database?

thanks in advance.

as far aware if loop through , update each call context.savechanges() after loop should commit in 1 transaction transaction not done until savechanges called.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -