About 667,000 results
Open links in new tab
  1. How to set up Automapper in ASP.NET Core - Stack Overflow

    What are the basic steps to setting up automapper?

  2. asp.net mvc - Mapping Lists using Automapper - Stack Overflow

    Mapper.CreateMap<Person, PersonViewModel>(); peopleVM = Mapper.Map<List<Person>, List<PersonViewModel>>(people); Mapper.AssertConfigurationIsValid(); From Getting …

  3. Automapper - how to map to constructor parameters instead of …

    Aug 21, 2019 · In cases where my destination setters are private, I might want to map to the object using the destination object's constructor. How would you do this using Automapper?

  4. Automapper - Multi object source and one destination

    Oct 23, 2013 · Automapper - Multi object source and one destination Asked 12 years ago Modified 2 years, 3 months ago Viewed 83k times

  5. How to specify mapping rule when names of properties differ

    I am a newbie to the Automapper framework. I have a domain class and a DTO class as follows: public class Employee { public long Id {get;set;} public string Name {get;set;} public string ...

  6. How to handle custom Properties in AutoMapper - Stack Overflow

    Feb 3, 2012 · How to handle custom Properties in AutoMapper Asked 13 years, 8 months ago Modified 2 years, 2 months ago Viewed 64k times

  7. c# - Automapper: map properties manually - Stack Overflow

    May 8, 2015 · I just started to use automapper to map DTOs&lt;->Entities and it seems to be working great. In some special cases I want to map only some properties and perform …

  8. Pass Objects to AutoMapper Mapping - Stack Overflow

    I am working with AutoMapper and some of the values for the entity being mapped to are variables in my current method. I have tried to Google it but to no avail. Can I pass a set of …

  9. Ignore mapping one property with Automapper - Stack Overflow

    In Automapper 12, there's an Ignore attribute : "Ignore this member for configuration validation and skip during mapping." [Old] There is now (AutoMapper 2.0) an IgnoreMap attribute, which …

  10. c# - How to use AutoMapper to map destination object with a …

    Feb 23, 2016 · After some discussion with OP, it turns out his main need is to quickly map a child/nested object inside the source object to the flattened destination object. He does not …