Note: the question relates to the mapping meta-data, not the mapped values.i.e. what is the NAME of the target mapped property, not the mapped value.
I am receiving this error: The ViewData item that has the key \'DepartmentId\' is of type \'System.Int32\' but must be of type \'IEnumerable\'.
When traversing layers it is very tedious to perform right->left assignments as a way to populate the models.For example:
Is there any way to get this to work?Here\'s a simplified/contrived illustration of my issue (Pardon my wordy VB):
I was hoping that I could map a flat datareader into a nested DTO.Running the following code the name is null.Am I doing something wrong or is this just not possible?
After reading ASP.NET MVC 2 in Action and watching Jimmy Bogard\'s presentation from MvcConf (both highly recommended!), I began to implement some of their ideas.
Quick question regarding Automapper. I\'m mapping data from an incoming web service, where datetimes fields are not null, but sometimes have the value of DateTime.MinValue as a work-around (I don\'t
I am having an issue using AutoMapper (which is an excellent technology) to map a business object to a DTO where I have inheritance off of an abstract base class within a collection.
I\'m new with AutoMapper and have a problem I\'m trying to solve. If I have a source class like this: public class Membership
I\'d like to generalize a property lookup from code like this .ForMember(dest => dest.FirstName, opt => opt.MapFrom(src => src.GetValue(\"FirstName\"))