c# - Is the ADO entity framework able to run multiple instances of -
so have web service uses homemade data access framework , found that in current state, web service cannot run more 1 instance @ time because framework start stepping on own feet , whine connections being closed/already opened , error that.
so implemented sql lock/mutex queues requests , since then, it's been pretty smooth.
i worked project uses ado entity framework (which i've never played until then) , found out pretty homemade framework does.
my question is, ado entity framework robust enough on own not need sql mutex implementation anymore ?
thanks.
if follow rule "do not share objectcontext (dbcontext in code first) instances between threads", ok.
entity framework uses static data improve performance (entity model cache), of objects (entity connections, contexts, change trackers, etc.) not thread-safe , shouldn't shared between threads.
Comments
Post a Comment