automapper
AutoMapper failing to map a simple list
I have used automapper for mapping lists in the past, for for some reason it won\'t work in this case.[详细]
2023-03-05 03:02 分类:问答Inject service into an AutoMapper destination class
Say I have a source and de开发者_运维百科stination class that is mapped using AutoMapper. The destination has a logger service injected into the constructor.[详细]
2023-03-05 02:09 分类:问答How to use AutoMapper to assign reference based on key value?
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[详细]
2023-03-04 18:46 分类:问答Automapper to map child list properties
Im trying to map a viewmodel to a domain that looks like the following: domain public class Category { public int CategoryId {get; set;}[详细]
2023-03-04 13:18 分类:问答Automapper and class hierarchy
Given the following sources: public class SourceBase { public string TheString { get; set; } } public class SourceDerived : SourceBase { }[详细]
2023-03-04 06:16 分类:问答Automapper collections
I\'ve read countless other posts and can\'t seem to figure out what\'s going on so it\'s time for some help.[详细]
2023-03-03 11:38 分类:问答With AutoMapper can the source be fully mapped to a property on the destination?
I am trying to set up an AutoMapper profile and am stuck t开发者_开发知识库rying to map from an entity into this view model:[详细]
2023-03-03 03:51 分类:问答Saving a nested collection with MVC 3, EF 4.1, DbContext, and AutoMapper
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[详细]
2023-03-02 04:46 分类:问答AutoMapper - Conditional Mapping
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[详细]
2023-03-01 14:30 分类:问答Where to define AutoMapper mappings?
Where in my ASP.NET MVC application should I define my AutoMapper mappings? Mapper.CreateMap<User, UserVi开发者_JAVA百科ewModel>();[详细]
2023-02-28 18:19 分类:问答
加载中,请稍侯......