public static void WithDataManager(this IDataManagerFactory factory, Action <IDataManager> func, IsolationLevel?level = null) { factory.WithDataManager(manager => { func(manager); return(true); }, level); }
public static void WithRepository <TRepo>(this IDataManagerFactory factory, Action <TRepo> func, IsolationLevel?level = null) where TRepo : class { factory.WithDataManager(manager => manager.WithRepository(func), level); }
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)); }