Example #1
0
 public static void WithDataManager(this IDataManagerFactory factory, Action <IDataManager> func, IsolationLevel?level = null)
 {
     factory.WithDataManager(manager =>
     {
         func(manager);
         return(true);
     }, level);
 }
Example #2
0
 public static void WithRepository <TRepo>(this IDataManagerFactory factory, Action <TRepo> func, IsolationLevel?level = null) where TRepo : class
 {
     factory.WithDataManager(manager => manager.WithRepository(func), level);
 }
Example #3
0
 public static T WithRepository <TRepo, T>(this IDataManagerFactory factory, Func <TRepo, T> func, IsolationLevel?level = null) where TRepo : class
 {
     return(factory.WithDataManager(manager => manager.WithRepository(func), level));
 }