Exemplo n.º 1
0
 public static void UseTransaction(this SqlOptions options) => options.Filters.Add(new TransactionFilter());
Exemplo n.º 2
0
 public static void UseTransactionScope(this SqlOptions options, TransactionScopeOption scopeOption) => options.Filters.Add(new TransactionScopeFilter(scopeOption));
Exemplo n.º 3
0
 public static void UseTransactionScope(this SqlOptions options, Func <TransactionScope> scopeFactory) => options.Filters.Add(new TransactionScopeFilter(scopeFactory));
Exemplo n.º 4
0
 public static void UseTransaction(this SqlOptions options, IsolationLevel isolationLevel) => options.Filters.Add(new TransactionFilter(isolationLevel));