public LookupService(IGroupDataContext dataContext, ISystemDataContext systemDataContext, RequestContext requestContext, IGroupDataContextFactory groupDataContextFactory) { _dataContext = dataContext; _systemDataContext = systemDataContext; _requestContext = requestContext; _groupDataContextFactory = groupDataContextFactory; }
private async Task <ConfigurationSetting> GetConfigurationSettingAsync(string key, string groupId, string culture, string section) { IGroupDataContext dataContext = _groupDataContextFactory.CreateGroupDataContext(groupId); var config = await dataContext.FirstOrDefaultAsync <ConfigurationSetting, ConfigurationSetting>(q => q.Where(c => (c.Culture == culture || c.Culture == "*") && (c.Section == section || c.Section == "*") && c.Key == key) .OrderBy(c => c.Priority)); return(config); }
private async Task <LocalisationText> GetLocalisationTextAsync(string key, string groupId, string culture, string section) { IGroupDataContext dataContext = _groupDataContextFactory.CreateGroupDataContext(groupId); var text = await dataContext.FirstOrDefaultAsync <LocalisationText, LocalisationText>(q => q.Where(c => (c.Culture == culture || c.Culture == "*") && (c.Section == section || c.Section == "*") && c.Key == key) .OrderBy(c => c.Priority)); return(text); }
private async Task <AlertTemplate> GetTemplateAsync(string key, string groupId, string culture, string channel) { IGroupDataContext dataContext = _groupDataContextFactory.CreateGroupDataContext(groupId); var text = await dataContext.FirstOrDefaultAsync <AlertTemplate, AlertTemplate>(q => q.Where(c => (c.Culture == culture || c.Culture == "*") && c.Section == "*" && c.Key == key && c.Channel == channel) .OrderBy(c => c.Priority)); return(text); }
public ConfigurationService(IGroupDataContextFactory groupDataContextFactory, IGroupDataContext dataContext) { _groupDataContextFactory = groupDataContextFactory; _dataContext = dataContext; }
public ContractorRepository(IGroupDataContext groupDataContext) { _context = groupDataContext; }
public PermissionService(IGroupDataContext dataContext, IPlatformServiceBusService platformServiceBusService, ILookupService lookupService) { _dataContext = dataContext; _platformServiceBusService = platformServiceBusService; _lookupService = lookupService; }
public SupervisorRepository(IGroupDataContext groupDataContext) { _context = groupDataContext; }
public PageBase() { _context = new GroupDbContext(); _auditor = new Auditor(); _uow = new UnitOfWork(_context, _auditor); }
public RiskAssessorRepository(IGroupDataContext groupDataContext) { _context = groupDataContext; }
public PlatformNormalisationService(ISystemDataContext systemDataContext, IGroupDataContext groupDataContext) { _systemDataContext = systemDataContext; _groupDataContext = groupDataContext; }
public LocalisationService(IGroupDataContext dataContext, RequestContext requestContext) { _dataContext = dataContext; _requestContext = requestContext; }
public UnitOfWork(IGroupDataContext groupDataContext, IAuditor auditor) { PersistenceContexts = new IPersistenceContext[] { groupDataContext }; Auditor = auditor; }
public TPRepository(IGroupDataContext groupDataContext) { _context = groupDataContext; }
public InstructorRepository(IGroupDataContext groupDataContext) { _context = groupDataContext; }
public AlertTemplateService(IGroupDataContext dataContext) { _dataContext = dataContext; }