automapper
How would I add properties to my view model that are not part of my model using automapper?
I am not sure if this is possible but here is my situation. Say I have a model like this: public class Product[详细]
2023-03-27 07:07 分类:问答Using AutoMapper Config with ValueInjecter [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-27 03:56 分类:问答How to use AutoMapper .ForMember?
I am trying to set up AutoMapper to convert from Entity to DTO. I know I\'m supposed to be using .ForMember() after Mapper.CreateMap<Entity, DTO>() to set up custom mappings, but this doesn\'t s[详细]
2023-03-26 12:17 分类:问答How to call a configuration method situated in my global.asax in my Test Project?
In my Global.asax **Application_Start()** I have a configuration of AutoMapper, this configuration is triggered whenever the application run.[详细]
2023-03-25 11:50 分类:问答How should i design my ViewModel and save it using AutoMapper and EF?
Im not quite sure how to use ViewModels so i need some help on the following issue: I am creating a online survey.[详细]
2023-03-25 09:11 分类:问答AutoMapper and Entity Framework POCO with explicit loading
I explicitly load relationships on my POCO when I need to, but since I switched to AutoMapper I thought I could instruct it to pre-load relationships for me so that my code in service layer looks clea[详细]
2023-03-25 06:59 分类:问答AutoMapper Model To ViewModel Vice Versa Updating Record
I have a unit test which I use mapper from Model to ViewModel, and ViewModel back to Model the Update the record - but in reality I haven\'t changed a thing, just testing that updating works.[详细]
2023-03-25 06:16 分类:问答Looking for AutoMapper v2 documentation
I just downloaded the source code of AutoMapper to do some debugging. When I built the sources I noticed it has 2.0 as a version number.[详细]
2023-03-25 02:19 分类:问答AutoMapper with a list data from IDataReader
using (IDataReader dr = DatabaseContext.ExecuteReader(command)) { if (dr.Read()) { AutoMapper.Mapper.CreateMap<IDataReader, ProductModel>();[详细]
2023-03-24 00:13 分类:问答AutoMapper one to many relation
I\'m starting to use AutoMapper for my project. For this I want to do the following \'one-to-many\' mapping:[详细]
2023-03-23 23:52 分类:问答