What is the best practice for working with entity framework in a multi threaded server?
I\'m using entity framework ObjectContext to manage all my database acti
Is this how I should do it??
No. At a minimum, use a context per thread but I strongly encourage you to think of a context as unit of work, and thus use a context per unit of work per thread.
It's up to you to define "unit of work" for your application. But don't use lock to use a context across multiple threads. It doesn't scale.