A similar question has already been discussed - Specter
|
1 answer 1
The globally created DataContext doesn't exactly need to be used, this class is not thread safe. You can create an instance with each call, you can store it in session variables. In the session version there will be difficulties in managing the lifetime of the context.