public CypherSchemesChildren(BusinessAggregateParams <CypherScheme> parentParams, int?cypherId, int?replacementRuleId) { _uow = (IUow)parentParams.UOW; _context = (IPuzzleContext)parentParams.Context; CypherId = cypherId.Value; ReplacementRuleId = replacementRuleId.Value; }
//static Func<ClaimsPrincipal, Actions, Result> _canAccessReplacementRules = (principal, action) => principal.CheckResourceAccess(action, new string[] { ResourceName }); #endregion public PuzzleWords(IUow uow, IPuzzleContext context, bool commitInmediately = true, params Expression <Func <PuzzleWord, bool> >[] parentKeys) : base(new BusinessAggregateParams <PuzzleWord>(uow, uow.PuzzleWords, context, _canAccessPuzzleWords, ResourceMap, ResourceName, PluralResourceName, parentKeys), commitInmediately) { }
public ReplacementRulesChildren(BusinessAggregateParams <ReplacementRule> parentParams, int replacementRuleId) { _uow = (IUow)parentParams.UOW; _context = (IPuzzleContext)parentParams.Context; ReplacementRuleId = replacementRuleId; }
//static Func<ClaimsPrincipal, Actions, Result> _canAccessReplacementRules = (principal, action) => principal.CheckResourceAccess(action, new string[] { ResourceName }); #endregion public ReplacementRules(IUow uow, IPuzzleContext context, bool commitInmediately = true, params Expression <Func <ReplacementRule, bool> >[] parentKeys) : base(new BusinessAggregateParams <ReplacementRule>(uow, uow.ReplacementRules, context, _canAccessReplacementRules, ResourceMap, ResourceName, PluralResourceName, parentKeys), commitInmediately) { }
public CyphersChildren(BusinessAggregateParams <Cypher> parentParams, int cypherId) { _uow = (IUow)parentParams.UOW; _context = (IPuzzleContext)parentParams.Context; CypherId = cypherId; }
public Puzzles(IUow uow, IPuzzleContext context) { _uow = uow; _context = context; }
public PuzzlesShell(IPuzzleContext context) : base(new UOW(), context) { }
public PuzzleAggregatesShell(IUow uow, IPuzzleContext context) { _uow = uow; _context = context; }