Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class MyObjectDto : MyObject
  2. {
  3. }
  4.  
  5. CreateMap<MyObject, MyObjectDto>()
  6. .ForAllMembers(s => s.ExplicitExpansion());
  7.  
  8. result = await myObjects
  9. .ProjectTo<TMyObjectDto>(_mapperConfiguration, null, fieldsToRetrieve.ToArray())
  10. .ToListAsync().ConfigureAwait(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement