Пример #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();
        }
Пример #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();
        }
Пример #3
0
 public PostgresTransaction(PostgresDatabase database) : base(database)
 {
 }