예제 #1
0
 public MaterialMessageRepository(ISettingsManager settingsManager, IMaterialArticleRepository materialArticleRepository, IMaterialMessageItemRepository materialMessageItemRepository)
 {
     _repository = new Repository <MaterialMessage>(settingsManager.Database, settingsManager.Redis);
     CacheKey    = CacheUtils.GetListKey(_repository.TableName);
     _materialArticleRepository     = materialArticleRepository;
     _materialMessageItemRepository = materialMessageItemRepository;
 }
예제 #2
0
 public DatabaseManager(ISettingsManager settingsManager, IAccessTokenRepository accessTokenRepository, IAdministratorRepository administratorRepository, IAdministratorsInRolesRepository administratorsInRolesRepository, IChannelRepository channelRepository, IChannelGroupRepository channelGroupRepository, IConfigRepository configRepository, IContentCheckRepository contentCheckRepository, IContentGroupRepository contentGroupRepository, IContentRepository contentRepository, IContentTagRepository contentTagRepository, IDbCacheRepository dbCacheRepository, IErrorLogRepository errorLogRepository, ILogRepository logRepository, IMaterialArticleRepository materialArticleRepository, IMaterialAudioRepository materialAudioRepository, IMaterialFileRepository materialFileRepository, IMaterialGroupRepository materialGroupRepository, IMaterialImageRepository materialImageRepository, IMaterialMessageRepository materialMessageRepository, IMaterialMessageItemRepository materialMessageItemRepository, IMaterialVideoRepository materialVideoRepository, IPermissionsInRolesRepository permissionsInRolesRepository, IPluginConfigRepository pluginConfigRepository, IRelatedFieldItemRepository relatedFieldItemRepository, IRelatedFieldRepository relatedFieldRepository, IRoleRepository roleRepository, ISiteLogRepository siteLogRepository, ISitePermissionsRepository sitePermissionsRepository, ISiteRepository siteRepository, ISpecialRepository specialRepository, IStatRepository statRepository, ITableStyleRepository tableStyleRepository, ITemplateLogRepository templateLogRepository, ITemplateRepository templateRepository, ITranslateRepository translateRepository, IUserGroupRepository userGroupRepository, IUserMenuRepository userMenuRepository, IUserRepository userRepository, IWxAccountRepository wxAccountRepository, IWxChatRepository wxChatRepository, IWxMenuRepository wxMenuRepository, IWxReplyKeywordRepository wxReplyKeywordRepository, IWxReplyMessageRepository wxReplyMessageRepository, IWxReplyRuleRepository wxReplyRuleRepository, IWxUserRepository wxUserRepository)
 {
     _settingsManager                = settingsManager;
     AccessTokenRepository           = accessTokenRepository;
     AdministratorRepository         = administratorRepository;
     AdministratorsInRolesRepository = administratorsInRolesRepository;
     ChannelRepository               = channelRepository;
     ChannelGroupRepository          = channelGroupRepository;
     ConfigRepository                = configRepository;
     ContentCheckRepository          = contentCheckRepository;
     ContentGroupRepository          = contentGroupRepository;
     ContentRepository               = contentRepository;
     ContentTagRepository            = contentTagRepository;
     DbCacheRepository               = dbCacheRepository;
     ErrorLogRepository              = errorLogRepository;
     LogRepository                 = logRepository;
     MaterialArticleRepository     = materialArticleRepository;
     MaterialAudioRepository       = materialAudioRepository;
     MaterialFileRepository        = materialFileRepository;
     MaterialGroupRepository       = materialGroupRepository;
     MaterialImageRepository       = materialImageRepository;
     MaterialMessageRepository     = materialMessageRepository;
     MaterialMessageItemRepository = materialMessageItemRepository;
     MaterialVideoRepository       = materialVideoRepository;
     PermissionsInRolesRepository  = permissionsInRolesRepository;
     PluginConfigRepository        = pluginConfigRepository;
     RelatedFieldItemRepository    = relatedFieldItemRepository;
     RelatedFieldRepository        = relatedFieldRepository;
     RoleRepository                = roleRepository;
     SiteLogRepository             = siteLogRepository;
     SitePermissionsRepository     = sitePermissionsRepository;
     SiteRepository                = siteRepository;
     SpecialRepository             = specialRepository;
     StatRepository                = statRepository;
     TableStyleRepository          = tableStyleRepository;
     TemplateLogRepository         = templateLogRepository;
     TemplateRepository            = templateRepository;
     TranslateRepository           = translateRepository;
     UserGroupRepository           = userGroupRepository;
     UserMenuRepository            = userMenuRepository;
     UserRepository                = userRepository;
     WxAccountRepository           = wxAccountRepository;
     WxChatRepository              = wxChatRepository;
     WxMenuRepository              = wxMenuRepository;
     WxReplyKeywordRepository      = wxReplyKeywordRepository;
     WxReplyMessageRepository      = wxReplyMessageRepository;
     WxReplyRuleRepository         = wxReplyRuleRepository;
     WxUserRepository              = wxUserRepository;
 }