Esempio n. 1
0
 private void Commit(
     NpgsqlConnection connection,
     Action <PostgreSqlWriteOnlyTransaction> action)
 {
     using (var transaction = new PostgreSqlWriteOnlyTransaction(connection, _options, _queueProviders))
     {
         action(transaction);
         transaction.Commit();
     }
 }
 private void Commit(
     NpgsqlConnection connection,
     Action<PostgreSqlWriteOnlyTransaction> action)
 {
     using (var transaction = new PostgreSqlWriteOnlyTransaction(connection, _options, _queueProviders))
     {
         action(transaction);
         transaction.Commit();
     }
 }