Could I store a SqlConnection
in the HttpContext
?
I mean, how can I share a single SqlConnection
across multiple classes?
In my project every class inherits a base abstract class that open and close connection.
This class recognizes if a SqlConnection
was opened by another class in that case uses it.
I can store this connection in another way that isn't HttpContext
?
There is another method to do this, exp. pass the connection between layers?
THX