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

    Installing AutoMapper.Extensions.Microsoft.DependencyInjection from NuGet Package. Step 2. Create a Folder in Solution to keep Mappings with Name "Mappings". Step 3. After adding …

  2. 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?

  3. 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 ...

  4. c# - Using AutoMapper.Profile for creating an instance (non-static ...

    While above completely fulfills the need for initializing my static Mapper class, I really dont have any idea how to re-use my Automapper profile classes for creating instance mappers [using …

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

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

  6. How can I map between two enums using Automapper?

    Here's one possibility for making a conversion between two Enum types that both have different values, while still using AutoMapper. In my case, I needed to use AutoMapper because the …

  7. 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 …

  8. What are the advantages of using automapper? - Stack Overflow

    Oct 22, 2010 · The one benefit that AutoMapper claims is mapping-by-convention. Here is a quote from "AutoMapper Introduction and Samples" Herein lies the beauty of AutoMapper. When …

  9. Automapper - Multi object source and one destination

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

  10. Ignore mapping one property with Automapper - Stack Overflow

    I'm using Automapper and I have the following scenario: Class OrderModel has a property called 'ProductName' that isn't in the database. So when I try to do the mapping with: …