Generally the work with EF for an looks like this:
Some Web controller calls for a method that has something like this:
using (var ctx = new EntityContext())
{
...
return something;
}
But I guess that in highly loaded application, that has several thousand requests per minute, it might create the problems. So my question is: maybe it makes sense to manually open connection and keep it alive? If yes, can anybody share the proper piece of code for such the task?
Thanks in advance