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

    AutoMapper also supports Flattening, which can get rid of all those pesky null reference exceptions you might encounter along the way. Once you have your types, and a reference to AutoMapper, you can …

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

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

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

  7. c# - AutoMapper: What is the difference between CreateMap and ...

    Feb 16, 2023 · 6 I am looking for an explanation of the difference between CreateMap/CreateProjection in automapper and ProjectTo/MapTo by relation. I just got started with the library and I am having …

  8. c# - Simple Automapper Example - Stack Overflow

    Dec 17, 2013 · I am having a hard time to understand how to map certain objects. Please answer some questions about this simple example. Example code class User { private int id; private string name; } ...

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

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