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

    Step To Use AutoMapper with ASP.NET Core. Step 1. Installing AutoMapper.Extensions.Microsoft.DependencyInjection from NuGet Package. Step 2. Create a …

  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 Started: How …

  3. entity framework - AutoMapper does not work in .NET Core 8 when I …

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

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

  5. 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 I'm going to …

  6. AutoMapper: Mapping between DTO and Entity - Stack Overflow

    Mar 18, 2021 · This works well and the AutoMapper is very powerful. The questions I have now is: Is this the standard way of managing the relationship between database entities and data transfer objects? …

  7. c# - Automapper: Ignore on condition of - Stack Overflow

    Is it possible to ignore mapping a member depending on the value of a source property? For example if we have: public class Car { public int Id { get; set; } public string Code { get; se...

  8. 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 Enum types were …

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

    Feb 23, 2016 · How to use AutoMapper to map destination object with a child object in the source object? Ask Question Asked 10 years ago Modified 7 years, 10 months ago

  10. AutoMapper: What is the difference between MapFrom and …

    Apr 7, 2016 · AutoMapper: What is the difference between MapFrom and ResolveUsing? Asked 13 years ago Modified 9 years, 11 months ago Viewed 45k times