public override void Begin() { PostgresDatabase postgresDatabase = this.database as PostgresDatabase; this.connection = new NpgsqlConnection(postgresDatabase.ConnectionString); this.connection.Open(); this.transaction = this.connection.BeginTransaction(); }
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(); }
public PostgresTransaction(PostgresDatabase database) : base(database) { }