コード例 #1
0
 public CypherSchemesChildren(BusinessAggregateParams <CypherScheme> parentParams, int?cypherId, int?replacementRuleId)
 {
     _uow              = (IUow)parentParams.UOW;
     _context          = (IPuzzleContext)parentParams.Context;
     CypherId          = cypherId.Value;
     ReplacementRuleId = replacementRuleId.Value;
 }
コード例 #2
0
        //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)
        {
        }
コード例 #3
0
 public ReplacementRulesChildren(BusinessAggregateParams <ReplacementRule> parentParams, int replacementRuleId)
 {
     _uow              = (IUow)parentParams.UOW;
     _context          = (IPuzzleContext)parentParams.Context;
     ReplacementRuleId = replacementRuleId;
 }
コード例 #4
0
        //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)
        {
        }
コード例 #5
0
 public CyphersChildren(BusinessAggregateParams <Cypher> parentParams, int cypherId)
 {
     _uow     = (IUow)parentParams.UOW;
     _context = (IPuzzleContext)parentParams.Context;
     CypherId = cypherId;
 }
コード例 #6
0
 public Puzzles(IUow uow, IPuzzleContext context)
 {
     _uow     = uow;
     _context = context;
 }
コード例 #7
0
 public PuzzlesShell(IPuzzleContext context) :
     base(new UOW(), context)
 {
 }
コード例 #8
0
 public PuzzleAggregatesShell(IUow uow, IPuzzleContext context)
 {
     _uow     = uow;
     _context = context;
 }