automapper
Best practice : database class to object class in ASP.NET MVC for validation
In a project using NHibernate, I have this class : public class AdminVAT : IAdminDecimal { public virtual int Id { get; set; }[详细]
2023-03-14 02:30 分类:问答Automapper: Resolve source property name from automapped object
Given the following classes: public class User { public int Id {get;set;} public PersonName Name {get;set;}[详细]
2023-03-14 00:01 分类:问答AutoMapper : Copy IList<> to IList<>
I have an IList<AdminVAT> and I\'d like to copy this collection to IList<AdminVATDto> collection[详细]
2023-03-13 20:49 分类:问答AutoMapper mapping int[] or List<int> from ViewModel to a List<Type> in Domain Model
I\'m new to AutoMapper and I\'ve been reading and reading questions around here but I\'m not quite able to figure out what looks like a very trivial question.[详细]
2023-03-13 13:57 分类:问答AutoMapper - how to use type converter on a single property
Is it possible to use AutoMapper with a single property? I would like to convert a string value of comma delimited values to a list of values separated by a line feed on the UI.[详细]
2023-03-13 07:22 分类:问答AutoMapper in the DAL: When to use Mapper.Reset()?
I\'m using AutoMapper in a g开发者_运维知识库enerated Data Access Layer. That works fine. It was a little confusing when using AutoMapper in another layer and realizing the mappings created in the DAL[详细]
2023-03-13 03:10 分类:问答Automapper mapping issue: flattening from DTO to ViewModel works - doesn't work the other way around
My DTOs (simplified for demonstration purposes): Item (the DTO mapped to my ViewModel in question): public class Item {[详细]
2023-03-13 01:27 分类:问答AutoMapper.AutoMapperMappingException: Type 'System.String' does not have a default constructor
A strange error began occurring in our code in the lest week or two. I am trying to identify the root cause of the mapping failure. The most-inner exception itself is puzzling: Type \'System.String\'[详细]
2023-03-11 14:43 分类:问答Multiple mappings for the same type using AutoMapper
I need help with my mapper program. i have two types开发者_如何转开发 (Lets say A and B)and i want to have two different mappings.[详细]
2023-03-10 18:12 分类:问答Automapper inheritance -- reusing maps
I am trying to use automapper to create a single map for a parent object and to reuse this amongst its children.[详细]
2023-03-09 19:12 分类:问答