Top "Automapper" questions

A convention-based object-to-object mapper and transformer for .NET

How to scan and auto-configure profiles in AutoMapper?

Is there any way to auto-configue Automapper to scan for all profiles in namespace/assembly? What I would like to …

.net structuremap profile automapper
Mapping one source class to multiple derived classes with automapper

Suppose i have a source class: public class Source { //Several properties that can be mapped to DerivedBase and its subclasses } …

c# automapper automapper-2
Can AutoMapper Map Between a Value Type (Enum) and Reference Type? (string)

Weird problem - i'm trying to map between an enum and a string, using AutoMapper: Mapper.CreateMap<MyEnum, string&…

c# enums automapper value-type reference-type
Using Automapper to update an existing Entity POCO

I am using EF4 DbContext to provide the model for an ASP.NET MVC app. I use ViewModels to provide …

asp.net-mvc entity-framework-4 viewmodel automapper dbcontext
Automapper: Ignore on condition of

Is it possible to ignore mapping a member depending on the value of a source property? For example if we …

c# automapper
Automapper : mapping issue with inheritance and abstract base class on collections with Entity Framework 4 Proxy Pocos

I am having an issue using AutoMapper (which is an excellent technology) to map a business object to a DTO …

.net entity-framework collections poco automapper
Mock AutoMapper Mapper.Map call using Moq

Whats the best way to setup a mock expection for the Map function in AutoMapper. I extract the IMapper interface …

c# moq automapper
How to use mapper.Map inside MapperConfiguration of AutoMapper?

I need to map an object to another one using AutoMapper. The tricky question is how can I access an …

c# .net mapping automapper
ASP.NET Core with EF Core - DTO Collection mapping

I am trying to use (POST/PUT) a DTO object with a collection of child objects from JavaScript to an …

c# asp.net-core entity-framework-core automapper asp.net-core-webapi
AutoMapper generic mapping

I have searched on Stack Overflow and googled about it but I haven't been able to find any help or …

c# mapping automapper