コード例 #1
0
 public DictionaryEntryController(
     IDictionaryRepository dictionaryRepository,
     IDictionaryEntryRepository dictionaryEntryRepository)
 {
     DictionaryRepository      = dictionaryRepository;
     DictionaryEntryRepository = dictionaryEntryRepository;
 }
コード例 #2
0
 public RootAnalysisController(
     IVerseAnalysisRepository verseAnalysisRepository,
     IDictionaryEntryRepository dictionaryEntryRepository,
     IDictionaryRepository dictionaryRepository)
 {
     VerseAnalysisRepository   = verseAnalysisRepository;
     DictionaryEntryRepository = dictionaryEntryRepository;
     DictionaryRepository      = dictionaryRepository;
 }
コード例 #3
0
 /// <summary>
 /// 构造函数 参数对象系统自动注入
 /// </summary>
 /// <param name="mapper">autoMapper 映射工具对象</param>
 /// <param name="cache">缓存对象</param>
 /// <param name="authUser">授权用户对象</param>
 /// <param name="dictionaryEntryRepository">仓储对象</param>
 public DictionaryEntryService(
     IMapper mapper,
     ICache cache,
     IAuthUser authUser,
     IDictionaryEntryRepository dictionaryEntryRepository
     )
 {
     _mapper   = mapper;
     _cache    = cache;
     _authUser = authUser;
     _dictionaryEntryRepository = dictionaryEntryRepository;
 }