Beispiel #1
0
        public async Task <DbConnection> OpenConnectionAsync()
        {
            DbConnection cnt = Factory.CreateConnection();

            cnt.ConnectionString = ConnectionString;
            await cnt.OpenAsync();

            ConnectionHistory.Add(cnt);

            return(cnt);
        }
Beispiel #2
0
        public DbConnection OpenConnection()
        {
            DbConnection cnt = Factory.CreateConnection();

            cnt.ConnectionString = ConnectionString;
            cnt.Open();

            ConnectionHistory.Add(cnt);

            return(cnt);
        }