I have used automapper for mapping lists in the past, for for some reason it won\'t work in this case.
Say I have a source and de开发者_运维百科stination class that is mapped using AutoMapper. The destination has a logger service injected into the constructor.
My use case is simple.I have a root domain object which references a child object.I have a DTO passed back from a service call that represents the domain object but rather than pass the child object e
Im trying to map a viewmodel to a domain that looks like the following: domain public class Category { public int CategoryId {get; set;}
Given the following sources: public class SourceBase { public string TheString { get; set; } } public class SourceDerived : SourceBase { }
I\'ve read countless other posts and can\'t seem to figure out what\'s going on so it\'s time for some help.
I am trying to set up an AutoMapper profile and am stuck t开发者_开发知识库rying to map from an entity into this view model:
I am having difficulty getting a nested collection (Tags in my case) to commit back to the database after being passed into my controller.I am using EF 4.1 with the DbContext API, MVC 3, and Automappe
I\'ve looked around and couldn\'t quite find the answer to my开发者_如何学Go question. What I\'m looking to do is conditional map the destination object (not field/property, object). In other words, s
Where in my ASP.NET MVC application should I define my AutoMapper mappings? Mapper.CreateMap<User, UserVi开发者_JAVA百科ewModel>();