public RuleModuleRepository(IBusinessRulesEngineContext context) : base(context)
 {
     BusinessRuleMapper.Instance.Init(
         new BusinessRuleMapperTarget(typeof(IRuleCompilable), typeof(RuleModule), typeof(Rules.RuleModule.RuleModule)),
         new BusinessRuleMapperTarget(typeof(IRuleCompilable), typeof(Rule), typeof(Rules.Rule))
         );
 }
Ejemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    this.dbContext?.Dispose();
                    this.dbContext = null;
                }

                disposedValue = true;
            }
        }
Ejemplo n.º 3
0
 public RuleArgumentRepository(IBusinessRulesEngineContext context) : base(context)
 {
 }
Ejemplo n.º 4
0
 public BusinessRulesEngineUnitOfWork(IBusinessRulesEngineContext dbContext)
 {
     this.dbContext = dbContext;
 }
Ejemplo n.º 5
0
 protected IBusinessRulesEngineUnitOfWork CreateUnitOfWork(IBusinessRulesEngineContext dbContext = null) =>
 new BusinessRulesEngineUnitOfWork(dbContext ?? this.DbContext);