public void Open() { SqlConnectionManager = new SqlConnectionManager((ConnectionString)ConnectionString); SqlConnectionManager.Open(); Server = new Server(new ServerConnection(SqlConnectionManager.DbConnection)); Context.StatementTimeout = 0; }
public override IDbConnectionManager Clone() { SqlConnectionManager clone = new SqlConnectionManager((ConnectionString)ConnectionString) { MaxLoginAttempts = this.MaxLoginAttempts }; return(clone); }
public override object Clone() { SqlConnectionManager clone = new SqlConnectionManager((SqlConnectionString)ConnectionString) { MaxLoginAttempts = this.MaxLoginAttempts, ModifyDBSettings = this.ModifyDBSettings }; return(clone); }
public override IConnectionManager Clone() { if (LeaveOpen) { return(this); } SqlConnectionManager clone = new SqlConnectionManager((ConnectionString)ConnectionString) { MaxLoginAttempts = this.MaxLoginAttempts }; return(clone); }
private bool disposedValue = false; // To detect redundant calls protected void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { Server?.ConnectionContext?.Disconnect(); if (SqlConnectionManager != null) { SqlConnectionManager.Close(); } SqlConnectionManager = null; Server = null; } disposedValue = true; } }
public void AfterBulkInsert() => SqlConnectionManager.AfterBulkInsert();
public void BeforeBulkInsert() => SqlConnectionManager.BeforeBulkInsert();
public void BulkInsert(ITableData data, string tableName) => SqlConnectionManager.BulkInsert(data, tableName);
public SMOConnectionManager(ConnectionString connectionString) { //RuntimePolicyHelper.SetNET20Compatibilty(); ConnectionString = connectionString; SqlConnectionManager = new SqlConnectionManager(connectionString); }
public IDbCommand CreateCommand(string commandText, IEnumerable <QueryParameter> parameterList = null) => SqlConnectionManager.CreateCommand(commandText, parameterList);
public SMOConnectionManager(ConnectionString connectionString) { ConnectionString = connectionString; SqlConnectionManager = new SqlConnectionManager(connectionString); }
public void AfterBulkInsert(string tableName) => SqlConnectionManager.AfterBulkInsert(tableName);
public void BeforeBulkInsert(string tableName) => SqlConnectionManager.BeforeBulkInsert(tableName);
public void BulkInsert(IDataReader data, IColumnMappingCollection columnMapping, string tableName) => SqlConnectionManager.BulkInsert(data, columnMapping, tableName);