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

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

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

    From Getting Started: How do I use AutoMapper? First, you need both a source and destination type to work with. The destination type's design can be influenced by the layer in which it lives, but …

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

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

  6. Automapper: passing parameter to Map method - Stack Overflow

    Dec 21, 2015 · I'm using Automapper in a project and I need to dynamically valorize a field of my destination object. In my configuration I have something similar: cfg.CreateMap<Message, …

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

  8. .net - Alternatives to AutoMapper - Stack Overflow

    What are the different alternative frameworks available for object to object mapping in .NET apart from AutoMapper Currently we're planning to use AutoMapper, but before finalizing this framework,...

  9. c# - AutoMapper: Max graph depth - Stack Overflow

    When I map a Country object to my DTO, AutoMapper automatically projects my entire graph, all the way down to Streets, which is a great default. In a specific usecase I would like to map just the root …

  10. c# - How to use Automapper with Autofac - Stack Overflow

    Aug 16, 2019 · 0 While I'm not familiar with Autofac myself, that descibes how to set up injection for automapper with Autofac. Goodluck!