Top "Automapper-2" questions

Use this tag for version specific questions about AutoMapper 2 - the convention-based object-to-object mapper and transformer library for .NET.

Automapper copy List to List

I have these classes: public class Person { public int Id{ get; set ;} public string FirstName{ get; set ;} public string LastName{ …

c# automapper automapper-2
How to configure Conditional Mapping in AutoMapper?

Suppose I have the following entities (classes) public class Target { public string Value; } public class Source { public string Value1; public …

c# lambda automapper automapper-2
AutoMapper: What is the difference between MapFrom and ResolveUsing?

Ignoring the ResolveUsing overloads that take an IValueResolver, and looking only at these 2 methods: void ResolveUsing(Func<TSource, object&…

automapper automapper-2
Automapper with nested child list

I have two classes below: public class Module { public int Id { get; set; } public string Name { get; set; } public string …

c# .net c#-4.0 automapper automapper-2
Using AutoMapper to map the property of an object to a string

I have the following model: public class Tag { public int Id { get; set; } public string Name { get; set; } } I want …

c# .net mapping automapper automapper-2
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
How to configure Auto mapper in class library project?

I am using auto mapping first time. I am working on c# application and I want to use auto mapper. (…

c# automapper automapper-2 automapper-3
How to Map String Literal to Destination Property

I'd like to be able to do something like this using automapper: Mapper.CreateMap<Source, Destination>() .ForMember<…

automapper automapper-2
Automapper expression must resolve to top-level member

I am using automapper to map source and destination objects. While I map them I get the below error. Expression …

automapper .net automapper-2
Automapper map from one object to nested objects

What is the best way to map inner objects with Automapper 2.0 Use the solution in this question (Automapper 1.0) Create a …

c# automapper automapper-2