Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyObjectDto : MyObject
- {
- }
- CreateMap<MyObject, MyObjectDto>()
- .ForAllMembers(s => s.ExplicitExpansion());
- result = await myObjects
- .ProjectTo<TMyObjectDto>(_mapperConfiguration, null, fieldsToRetrieve.ToArray())
- .ToListAsync().ConfigureAwait(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement