I am working on a asp.net mvc application.
I have a situation where I have to make many threads which are going to access the database using linqtosql. My question is, will it be fine to leave every thing on linqtosql to maintain the synchronization, because the threads will be accessing the database at the same time. Or I have to write my own code to do that.
I am working on a asp.net mvc application. I have a situation where I
Share
If each thread is using its own database context, you will be fine. However, I don’t believe the database context object is thread safe. So, it’s best to make sure each thread has its own context.
Randy