You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The combination of mapping => mapper.Map<EntityDto>(mapping) and an include statement include: source => source.Include(mapping => mapping.Template) dosn't work.
The same stuff in several steps is working well.
f.e. first load without Automapper mapping and second map the entity into the EntityDto after loading pagedList.
This example works correct.
var result = await unitOfWork.GetRepository<Entity>()
.GetPagedListAsync(
mapping => mapping,
null,
mapping => mapping.OrderBy(map => map.Name),
include: source => source.Include(mapping => mapping.Template),
queryParameters.PageIndex, queryParameters.PageSize);
var dtoItems = mapper.Map<List<EntityDto>>(result.Items);
Analyse:
Dataloading with include himself is working correct.
Automapping himself ist working correct.
But the combination of Dataloading and Automapping in the selection dosn't work.
The text was updated successfully, but these errors were encountered:
The combination of
mapping => mapper.Map<EntityDto>(mapping)
and an include statementinclude: source => source.Include(mapping => mapping.Template)
dosn't work.The same stuff in several steps is working well.
f.e. first load without Automapper mapping and second map the entity into the EntityDto after loading pagedList.
This example works correct.
Analyse:
But the combination of Dataloading and Automapping in the selection dosn't work.
The text was updated successfully, but these errors were encountered: