automapper
Override type mapping in AutoMapper
I\'ve got the following... Mapper.CreateMap<string, string>().ConvertUsing(x => x.Clean()); ...but I only want to use this mapping when mapping between some types. If this mapping were to[详细]
2023-03-09 14:53 分类:问答EF + Automapper, is this a good approach to a ASP.NET MVC 2 web app project?
I\'m starting a project with MVC 2 and would like to know if the following struct开发者_开发百科ure is a good approach in terms of design.[详细]
2023-03-09 12:21 分类:问答Checking for an attribute on a destination property inside a custom AutoMapper TypeConverter
I have a custom type converter that converts UTC DateTime properties to a company\'s local time (talked about here: Globally apply value resolver with AutoMapper).[详细]
2023-03-09 02:23 分类:问答AutoMapper testing and dependency injection for resolvers
Im writing a test for an automapper map. One of the destination members in the map requires a value resolver, and that value resolver has service dependencies which are injected. I want to use the rea[详细]
2023-03-08 14:22 分类:问答Disable default mapping convention for automapper
HI, I am using autommaper in my app and for now I have one problem. When I use ConstructUsing method for specify constructor to map object, after that Automapper copy all other fields by default conv[详细]
2023-03-08 00:28 分类:问答Automapper and request specific resources
I\'m considering automapper for an asp mvc intranet app I am writing. My controllers are currently created using Unity dependency injection, where each container gets dependencies unique to the reques[详细]
2023-03-07 17:23 分类:问答Automapper - How to reuse objects instead of creating new ones (this objects are in a list)
I got the following problem: I got a Entity (from EF Code First) that looks like this. public class Movie {[详细]
2023-03-06 23:12 分类:问答Automapper - RecognizePrefixes doesn't work
I have need to map PriorityId -> TcTaskPriorityId Mapper.Configuration.RecognizePrefixes(\"TcTask\");[详细]
2023-03-05 20:57 分类:问答ASP.NET MVC3 Automapper Viewmodel/Model View validation
(Again, an MVC validation question. I know, I know...) I\'d like to use AutoMapper (http://automapper.codeplex.com/) to validate fields in my Create Views for fields that are not in my database (and[详细]
2023-03-05 18:18 分类:问答AUtomapper - custom property mapping
Usually the property names are the same,but many properties have on one side a prefix. Classes may look like this[详细]
2023-03-05 08:50 分类:问答