internal ConnectionManager(string connectionName) { _connectionName = connectionName; _connectionString = Configuration.GetConnectionString(connectionName); _providerName = Configuration.GetProviderName(connectionName); _assemblyProvider = new AssemblyProvider(_providerName); }
internal ConnectionManager(string connectionString, string providerName) { _connectionString = connectionString; _providerName = providerName; _connectionName = string.Empty; _assemblyProvider = new AssemblyProvider(_providerName); }
internal ConnectionManager() { _connectionName = Configuration.DefaultConnection; _connectionString = Configuration.ConnectionString; _providerName = Configuration.ProviderName; _assemblyProvider = new AssemblyProvider(_providerName); }
/// <summary> /// Constructor creates instance of the class for the specified connection string and provider name /// </summary> /// <param name="connectionString">Connection String</param> /// <param name="providerName">Provider name</param> public DBHelper(string connectionString, string providerName) { _connectionManager = new ConnectionManager(connectionString, providerName); _commandBuilder = new CommandBuilder(providerName); _dbAdapterManager = new DataAdapterManager(providerName); _connection = _connectionManager.GetConnection(); _providerName = _connectionManager.ProviderName; _assemblyProvider = new AssemblyProvider(_providerName); }
public CommandBuilder(string providerName) { this._providerName = providerName; _paramBuilder = new DBParamBuilder(providerName); _assemblyProvider = new AssemblyProvider(this._providerName); }
public CommandBuilder() { this._providerName = Configuration.GetProviderName(Configuration.DefaultConnection); _paramBuilder = new DBParamBuilder(this._providerName); _assemblyProvider = new AssemblyProvider(this._providerName); }
internal DBParamBuilder(string providerName) { _assemblyProvider = new AssemblyProvider(providerName); _providerName = providerName; }
public DataAdapterManager(string providerName) { this._providerName = providerName; _commandBuilder = new CommandBuilder(providerName); _assemblyProvider = new AssemblyProvider(_providerName); }
public DataAdapterManager() { this._providerName = Configuration.GetProviderName(Configuration.DefaultConnection); _commandBuilder = new CommandBuilder(_providerName); _assemblyProvider = new AssemblyProvider(_providerName); }