public static void WithTransaction(this IDataManagerFactory factory, Action <ITransactionDataManager> func, IsolationLevel level = IsolationLevel.ReadCommitted) { factory.WithTransaction(manager => { func(manager); return(true); }, level); }