This is something that can go well with the IoC or DI framework - having some interface that includes database information, and made it insert all the callers for you. Even without IoC, hiding the implementation in an interface sounds like a complete plan.
static; a [ThreadStatic] , ( ), , Principal, WCF ( ) winforms ( ). , (async ..). , , ASP.NET .