AutoMapper is great, saves a lot of time, but when I started looking at the performance of my application AutoMapper is responsible for performance loss.
Is it possible to configure AutoMapper to return a new instance of the destination type if the source object is null?
I am trying to deep clone the following class using AutoMapper: public class MainData { public MainData()
I ve been trying to do something like this: ... Mapper.CreateMap<IEnumerable<Foo>, IEnumerable<FooDto>>();
Can you Mapper.CreateMap<Foo, Bar>() .ForMember(x => x.IsFoo, x => x.Ignore()); and then later on add another mapping of 开发者_如何学Gothe sort
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to 开发者_如何学Gobe supported by facts, references,or expertise, but this question will likely so
I am using the nice s#arp repositories and the paging extension method plus sorting like this: public ViewResult Index(in开发者_JAVA技巧t? page, GridSortOptions sort)
I\'m mapping an ApplianceViewModel to a ApplianceDTO. Each Appliance has a collection of ActionViewModels which are mapped to ActionDTO. What I\'d like to do is configure the mapper to ignore ActionVi
I have a problem when I try to map following class. class LazyStudent : ActiveRecordBase { [Property] public String Name
I\'ve been trying to use AutoMapper to save some time going from my DTOs to my domain objects, but I\'m having trouble configuring the map so that it works, and I\'m beginning to wonder if AutoMapper