public void Open() { SqlConnectionManager = new SqlConnectionManager(ConnectionString); SqlConnectionManager.Open(); Server = new Server(new ServerConnection(SqlConnectionManager.DbConnection)); Context.StatementTimeout = 0; }
public override IDbConnectionManager Clone() { SqlConnectionManager clone = new SqlConnectionManager(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 BulkInsert(IDataReader data, IColumnMappingCollection columnMapping, string tableName) => SqlConnectionManager.BulkInsert(data, columnMapping, tableName);
public SMOConnectionManager(ConnectionString connectionString) { RuntimePolicyHelper.SetNET20Compatibilty(); ConnectionString = connectionString; SqlConnectionManager = new SqlConnectionManager(connectionString); }