I have two classes l开发者_如何学运维ike so: public class SentEmailAttachment : ISentEmailAttachment
I am trying to map the ReferralContract.AssessmentId property to Referral.Assessment.Id The below code works but I am sure that there is a cleaner way to do.... Please tell me this is so ;-)
I\'m trying to build a way of mapping from one type to another, knwoing they will (should) have the same structure. Related Question.
I\'m trying to map int IdPost on DTO to Post object on Blog object, based on a rule. I would like to achieve this: BlogDTO.IdPos开发者_开发技巧t => Blog.Post
I have an object like this: public class Foo { public string Title { get; set; } public IList<Foo开发者_Go百科Child> Children { get; set; }
Mapper.CreateMap<BusinessObject, Proxy.DataContacts.DCObject>() .ForMember(x => x.Ext开发者_Go百科ensionData, y => y.Ignore())
Is there a way to intercept the mapping of each property?What I would really like to do is something like ForAllMembers(opt => opt.Ignore(Func);
Can Automapper map values from a NameValueCollection onto an object, where target.Foo receives the value stored in the collection under the \"Foo\" key?
I am using ASP.NET MVC 2, and am using a view-model per view approach. I am also using Automapper to map properties from my domain-model to the view-model.
Any idea how I can tell AutoMapper to resolve a TypeConverter constructor argument using StructureMap?