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)) ); }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { this.dbContext?.Dispose(); this.dbContext = null; } disposedValue = true; } }
public RuleArgumentRepository(IBusinessRulesEngineContext context) : base(context) { }
public BusinessRulesEngineUnitOfWork(IBusinessRulesEngineContext dbContext) { this.dbContext = dbContext; }
protected IBusinessRulesEngineUnitOfWork CreateUnitOfWork(IBusinessRulesEngineContext dbContext = null) => new BusinessRulesEngineUnitOfWork(dbContext ?? this.DbContext);