Compartilhar via


ConnectionHelpers Class

Definition

Provides methods to provide database-scoped connections in place of a server-scoped connection

public static class ConnectionHelpers
type ConnectionHelpers = class
Public Module ConnectionHelpers
Inheritance
ConnectionHelpers

Methods

ToScopedServerConnection(SqlConnection, Urn)

Given a SqlConnection and Urn, returns the ServerConnection scoped to the database specified by the Urn.
If the Urn does not require a database scope, the ServerConnection will be scoped to whichever database the input SqlConnection is using.

ToScopedServerConnection(SqlConnection, Urn)

Applies to