public async Task <IEnumerable <DataDictionary> > Handle(Command request, CancellationToken cancellationToken) { using (var scope = _databaseScopeFactory.CreateReadOnly()) { var result = await _materialRepository.DataDicAsync(request.NeedAll); return(result); } }