c# - How to access to the DBContext used in an EntityManager? -


i insert/update large amount of entities (~5000) during process , taking huge amount of time (it timeout on 5 minutes transaction).

i read default dbcontext.autodetectchangesenabled set on , cause kind of behavior (http://www.exsertus.be/2014/10/ef-bulk-performance/).

to understanding, devforce "kind of" encapsulate dbcontext within each entitymanager. devforce use it's own implementation unless define mine did. know how can access able "play" property autodetectchangesenabled.

or there other solution insert/update/delete large amount of entities devforce ?

regards

since you've defined own dbcontext can alter property setting in dbcontext constructor configuration.autodetectchangesenabled = false;

however, i'm not sure how change help. if application n-tier , you're trying save ~5000 entities across wire slow, , you'll run communication timeouts. if need bulk operations devforce isn't optimal approach.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -