C# Class Tosca.Core.Data.SqlConnectionFactory

Inheritance: ISqlConnectionFactory
Datei anzeigen Open project: phatboyg/Tosca

Public Methods

Method Description
GetConnection ( string connectionName ) : SqlConnection
GetConnection ( string connectionName, string serverName, string databaseName ) : SqlConnection

Private Methods

Method Description
CreateConnection ( string connectionString ) : SqlConnection
GetConnectionSettingsFromAssemblyConfiguration ( string connectionName ) : ConnectionStringSettings
GetConnectionString ( string connectionName ) : string
GetConnectionString ( string connectionName, string serverName, string databaseName ) : string

Method Details

GetConnection() public method

public GetConnection ( string connectionName ) : SqlConnection
connectionName string
return System.Data.SqlClient.SqlConnection

GetConnection() public method

public GetConnection ( string connectionName, string serverName, string databaseName ) : SqlConnection
connectionName string
serverName string
databaseName string
return System.Data.SqlClient.SqlConnection