automapper
Invalid cast exception when trying to map from int? to enum?
I have a senario where a user wants to select his gender which is not a mandatory field. Here in my ui the gender is listed in dropdownlist which has two options Male and Female and has a optional lab[详细]
2023-04-02 04:35 分类:问答Where to put Automapper maps in Nunit test assembly
I am using Automapper in my application and I am testing the maps with fake objects, so I have slightly different maps in my tests than in my production code, what is the best way to c开发者_Go百科rea[详细]
2023-04-02 02:44 分类:问答AutoMapper - How do I map some dto objects into one domain object?
I am having an issue using AutoMapper to map some DTO objects (abstract object with inheritance)to one domain object.[详细]
2023-04-02 02:16 分类:问答EmitMapper: Map array of derived classes
Let\'s assume that we have following class hierarchy class DtoBaseClass { public string BaseProperty {get; set;}[详细]
2023-04-01 19:03 分类:问答How to use Automapper to construct object without default constructor
My objects don\'t have a default constru开发者_开发百科ctor, they all require a signature of new Entity(int recordid);[详细]
2023-03-30 22:52 分类:问答How to debug into AutoMapper code?
I am using AutoMapper to map my business objects to my view model and there is a custom type I wrote that 开发者_如何学Cis not mapping correctly resulting in an exception.I am trying to figure out how[详细]
2023-03-29 22:56 分类:问答How to configure AutoMapper to flatten a 1:n relation?
Consider two entity classes CD and Track: public class CD { public long Id {get; set;} public string Name {get; set;}[详细]
2023-03-29 20:55 分类:问答Problems with Automapper Map.CreateMap without Custom Mapping
I\'m trying to use AutoMapper without resorting to custom mapping. I have two objects defined as follows using the same interface[详细]
2023-03-29 06:30 分类:问答Alternatives to AutoMapper [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-03-28 02:49 分类:问答How do I call different mapping strategy for same type in AutoMapper?
I have a customer class & I\'d like to have the customer emails field display in CSV format for an admin list view.When the edit view shows, I\'d like to have the view show emails in a textbox spl[详细]
2023-03-27 16:50 分类:问答