Ejemplo n.º 1
0
        public async Task <DbConnection> OpenConnectionAsync()
        {
            DbConnection cnt = Factory.CreateConnection();

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

            ConnectionHistory.Add(cnt);

            return(cnt);
        }
Ejemplo n.º 2
0
        public DbConnection OpenConnection()
        {
            DbConnection cnt = Factory.CreateConnection();

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

            ConnectionHistory.Add(cnt);

            return(cnt);
        }