About 50 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. c# - AutoMapper error: MapperConfiguration does not contain …

    Aug 16, 2025 · AutoMapper error: MapperConfiguration does not contain constructor that takes 1 arguments Asked 6 months ago Modified 6 months ago Viewed 2k times

  3. c# - ASP.NET cannot add AutoMapper service - Stack Overflow

    Jul 23, 2025 · 1 According to the Automapper 15.0 Upgrade guide, Automapper now requires a license. You can get this by visiting this Lucky Penny Software link and registering using your …

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

  5. entity framework - AutoMapper does not work in .NET Core 8 …

    Feb 13, 2024 · I am trying to use AutoMapper to map my entity with my DTO, but when I try to use dependency injection in program.cs like this: …

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

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

  8. How to Configure AutoMapper to Globally Ignore Specific …

    Feb 11, 2025 · Is there a more efficient way to globally configure AutoMapper to ignore specific properties during the mapping process? Desired Outcome: A solution that enables me to …

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

    Feb 23, 2016 · How to use AutoMapper to map destination object with a child object in the source object? Asked 9 years, 11 months ago Modified 7 years, 9 months ago Viewed 37k 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: …