c# - Is DbContext thread safe? -


i wondering if dbcontext class thread safe, assuming it's not, executing paralell threads access dbcontext in application , getting host of locking exceptions , other things may thread related.

until wasn't getting errors...but until wasn't accessing dbcontext in threads.

if right, people suggest solution?

it's not thread safe. create new instance of dbcontext in thread.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -