To access the database, you need a DataContext instance. But how to effectively use it?
Make it global for the whole project? Then for simultaneous requests errors of the following type will be issued:
"Specified cast is not valid."
or
"InvalidCastException"
or
"DataReader is closed".
Make a single copy for one page? Then, too, you can get the same exceptions, if you run a lot of requests from the page.
Do each new instance for any request? Then this is quite a long time (as I understand it: the creation of an object + a connection to the database). But errors then do not appear.
What to do? Tell me! Maybe there are other solutions? It would be desirable that it was possible to send many requests simultaneously and the speed was as fast as possible :)