示例#1
0
 internal ConnectionManager(string connectionName)
 {
     _connectionName   = connectionName;
     _connectionString = Configuration.GetConnectionString(connectionName);
     _providerName     = Configuration.GetProviderName(connectionName);
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#2
0
 internal ConnectionManager(string connectionString, string providerName)
 {
     _connectionString = connectionString;
     _providerName     = providerName;
     _connectionName   = string.Empty;
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#3
0
 internal ConnectionManager(string connectionString, string providerName)
 {
     _connectionString = connectionString;
     _providerName = providerName;
     _connectionName = string.Empty;
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#4
0
 internal ConnectionManager()
 {
     _connectionName   = Configuration.DefaultConnection;
     _connectionString = Configuration.ConnectionString;
     _providerName     = Configuration.ProviderName;
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#5
0
 internal ConnectionManager(string connectionName)
 {
     _connectionName = connectionName;
     _connectionString = Configuration.GetConnectionString(connectionName);
     _providerName = Configuration.GetProviderName(connectionName);
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#6
0
 internal ConnectionManager()
 {
     _connectionName = Configuration.DefaultConnection;
     _connectionString = Configuration.ConnectionString;
     _providerName = Configuration.ProviderName;
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#7
0
 /// <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);
 }
示例#10
0
 internal DBParamBuilder(string providerName)
 {
     _assemblyProvider = new AssemblyProvider(providerName);
     _providerName     = providerName;
 }
示例#11
0
 public DataAdapterManager(string providerName)
 {
     this._providerName = providerName;
     _commandBuilder = new CommandBuilder(providerName);
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#12
0
 public DataAdapterManager()
 {
     this._providerName = Configuration.GetProviderName(Configuration.DefaultConnection);
     _commandBuilder = new CommandBuilder(_providerName);
     _assemblyProvider = new AssemblyProvider(_providerName);
 }
示例#13
0
 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);
 }