About 547,000 results
Open links in new tab
  1. How to create a reusable mapping profile with Mapster?

    I have a .Net 5 Web Api project and want to use Mapster v7.2.0 to avoid mapping objects manually. The following code shows a sample scenario setup a mapping configuration map …

  2. c# - Mapster - how to map to multiple entities - Stack Overflow

    Nov 27, 2023 · Mapster - how to map to multiple entities Asked 2 years ago Modified 2 years ago Viewed 3k times

  3. Newest 'mapster' Questions - Stack Overflow

    Oct 4, 2025 · I use Mapster package for mapping two objects. An existing object is updated (patched) by applying some rules in the source object and ignore some properties based on …

  4. Mapster.Tool use codegen to generate mappers but not DTOs

    Mar 10, 2021 · Can I use Mapster.Tool to generate Mappers without also generating the class that I'm mapping to? I have a typical Domain objects to and from DTOs scenario but the sample …

  5. mapping - Automapper / Mapster C# - how do I map collection …

    May 19, 2022 · Automapper / Mapster C# - how do I map collection from specific property? Asked 3 years, 7 months ago Modified 1 year, 10 months ago Viewed 9k times

  6. Mapster Global Configuration with Dependency Injection

    I'd like to know if there is a way to globally configure Mapster while using Dependency Injection? The configuration options appear to be for the static usage and also for a singleton pattern only.

  7. How to create a map for generic types with Mapster?

    Sep 18, 2022 · In mapster when you use :TypeAdapterConfig, it means you want to map two entities that is knowing object and the properties are compiled, you can not use that for …

  8. Using Mapster w/DI where should I be putting my mapping?

    Using Mapster with the Mapster DI package I also have a static class called MapperConfig that has a static method that does all my dto to viewmodel mapping. public static class …

  9. c# - Mapster map using multiple objects to one - Stack Overflow

    Jun 21, 2021 · I am using mapster and C# in visual studio and have three objects I need to map to one. Has anyone done this, any examples? Mapster says it has that capability but I can't get it …

  10. Adapt navigational property using Mapster - Stack Overflow

    Jun 8, 2020 · Adapt navigational property using Mapster Asked 5 years, 6 months ago Modified 5 years, 6 months ago Viewed 9k times