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