Exemplo n.º 1
0
        public override void Begin()
        {
            PostgresDatabase postgresDatabase = this.database as PostgresDatabase;

            this.connection = new NpgsqlConnection(postgresDatabase.ConnectionString);
            this.connection.Open();
            this.transaction = this.connection.BeginTransaction();
        }
Exemplo n.º 2
0
        public override async Task BeginAsync()
        {
            PostgresDatabase postgresDatabase = this.database as PostgresDatabase;

            this.connection = new NpgsqlConnection(postgresDatabase.ConnectionString);
            await this.connection.OpenAsync();

            this.transaction = this.connection.BeginTransaction();
        }
Exemplo n.º 3
0
 public PostgresTransaction(PostgresDatabase database) : base(database)
 {
 }