Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var collection = repository.Get();
- AutoMapper.Mapper.Initialize(cfg => cfg.CreateMap<SourceType, DestinationType>());
- var projection = collection.AsQueryable().ProjectTo<DestinationType>();
Add Comment
Please, Sign In to add comment