public async Task <DbConnection> OpenConnectionAsync() { DbConnection cnt = Factory.CreateConnection(); cnt.ConnectionString = ConnectionString; await cnt.OpenAsync(); ConnectionHistory.Add(cnt); return(cnt); }
public DbConnection OpenConnection() { DbConnection cnt = Factory.CreateConnection(); cnt.ConnectionString = ConnectionString; cnt.Open(); ConnectionHistory.Add(cnt); return(cnt); }