automapper
Null/MinValue check in Automapper configuration
I\'m pulling a list of customers left join appointments. Since all customers may not have appointments, based on this answer, I have the following Automapper configuration:[详细]
2023-04-13 06:48 分类:问答Can AutoMapper map object to model property of the same type
I am attempting to improve my data flow between my MVC 3 Model and Views (mainly CRUD). I have taken the approach of using ViewModels and FormModels. My ViewModel contains everything it need to repres[详细]
2023-04-12 23:35 分类:问答Mapping query string to object with AutoMapper
I have discovered AutoMapper开发者_开发问答 recently, and I´m thinking if I could mapping HttpConext, (really query parameters) to a typed object.The HttpRequest.QueryString is a NameValueCollection.[详细]
2023-04-12 19:18 分类:问答Abstract classes with automapper
I have a base class: public abstract class User { /* properties */ } public cla开发者_如何转开发ss Teacher : User[详细]
2023-04-12 11:40 分类:问答Automapper and Entity Framework Code First Not Working Correctly
I am trying to use Automapper with Entity Framework Code First 4.1.I can\'t get a save/update to work correctly 100% of the time.[详细]
2023-04-11 00:47 分类:问答NullReferenceException using AutoMapper and StructureMap
So, I get a NullReferenceException thrown on a production server. It\'s not reproducible and happens once every ~100 request.[详细]
2023-04-10 19:21 分类:问答Automapper null string to empty
When I try to map an object that has a null string property, the destination is also null. Is there a global settings I开发者_JAVA技巧 can turn on that says all null string should be mapped to empty?S[详细]
2023-04-10 03:29 分类:问答Mapping lists in my Mapper class using using AutoMapper
I am using ASP.NET MVC 3 and AutoMapper. In my category controller I return a list of categories and I want to map each category to a category view model which is used in my grid.I have my own mapper[详细]
2023-04-09 11:38 分类:问答Change Tracking with DTO to POCO Entity Framework 4/4.1
I\'ve used Entity Framework 4.0 POCO entities for persistence layer in the current project. I\'ve used DTO\'s to send the data from Service Layer to UI Layer. Repositories and inside of Service Layer[详细]
2023-04-09 05:29 分类:问答AutoMapper with complex types
I\'m having a problem trying to use complex types with AutoMapper. I have two objects, a domain and a ViewModel that utlize in my View;[详细]
2023-04-09 05:11 分类:问答