Ejemplo n.º 1
0
 public static TOut Execute <TIn1, TIn2, TIn3, TIn4, TIn5, TOut>(this IDbTransactionalDelegator dbDelegator, Func <IDbTransaction, TIn1, TIn2, TIn3, TIn4, TIn5, TOut> command, TIn1 parameter1, TIn2 parameter2, TIn3 parameter3, TIn4 parameter4, TIn5 parameter5, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     return(dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2, o.Item3, o.Item4, o.Item5), new Tuple <TIn1, TIn2, TIn3, TIn4, TIn5>(parameter1, parameter2, parameter3, parameter4, parameter5), isolationLevel));
 }
Ejemplo n.º 2
0
 public static void Execute <T1, T2, T3, T4, T5>(this IDbTransactionalDelegator dbDelegator, Action <IDbTransaction, T1, T2, T3, T4, T5> command, T1 parameter1, T2 parameter2, T3 parameter3, T4 parameter4, T5 parameter5, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2, o.Item3, o.Item4, o.Item5), new Tuple <T1, T2, T3, T4, T5>(parameter1, parameter2, parameter3, parameter4, parameter5), isolationLevel);
 }
Ejemplo n.º 3
0
 public static Task Execute <T1, T2, T3, T4, T5, T6, T7>(this IDbTransactionalDelegator dbDelegator, Func <IDbTransaction, T1, T2, T3, T4, T5, T6, T7, Task> command, T1 parameter1, T2 parameter2, T3 parameter3, T4 parameter4, T5 parameter5, T6 parameter6, T7 parameter7, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     return(dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2, o.Item3, o.Item4, o.Item5, o.Item6, o.Item7), new Tuple <T1, T2, T3, T4, T5, T6, T7>(parameter1, parameter2, parameter3, parameter4, parameter5, parameter6, parameter7), isolationLevel));
 }
Ejemplo n.º 4
0
 public static void Execute <T1, T2>(this IDbTransactionalDelegator dbDelegator, Action <IDbTransaction, T1, T2> command, T1 parameter1, T2 parameter2, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2), new Tuple <T1, T2>(parameter1, parameter2), isolationLevel);
 }
Ejemplo n.º 5
0
 public static Task <TOut> Execute <TIn1, TIn2, TIn3, TOut>(this IDbTransactionalDelegator dbDelegator, Func <IDbTransaction, TIn1, TIn2, TIn3, Task <TOut> > command, TIn1 parameter1, TIn2 parameter2, TIn3 parameter3, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     return(dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2, o.Item3), new Tuple <TIn1, TIn2, TIn3>(parameter1, parameter2, parameter3), isolationLevel));
 }
Ejemplo n.º 6
0
 public static Task Execute <T1, T2>(this IDbTransactionalDelegator dbDelegator, Func <IDbTransaction, T1, T2, Task> command, T1 parameter1, T2 parameter2, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     return(dbDelegator.Execute((c, o) => command(c, o.Item1, o.Item2), new Tuple <T1, T2>(parameter1, parameter2), isolationLevel));
 }