My Question is As I am passing UserCreateViewModel from my Create Controller that means my Validation(ModelState.IsValid) will work only
I have everthing set for automapper to work. Attribute is working fine as well and properly filling DTO. My Controller Create Action looks like below
I want to assign Guid to UserId of my UserDTO if UserId is Null. Is it possible to do this in the CreateMap or creating any formatter?. I am using automapper as an attribute on my Actions in controlle
Is it possible to have开发者_运维百科 AutoMapper look for an attribute on the source property?I want AutoMapper to change how it maps the properties when those properties have a specific attribute set
I have an mvc controller which has a helper class injected into it. I would like to convert from a viewmodel to a dto using automapper. most of the properties are simple mappings but one involves call
I\'m using AutoMapper to save my MySQL results in a List, this is complete with information on when the row was last updated. The \'timestamp\' will then be used to query the database for updates. But
A simple question: is there a good reference implementation of using ASP.NET MVC with an ORM, ViewModels, and EditModels (ideally using Automapper)?
How can you map a property to a sub-property that may be null? eg the following code will fail with a NullReferenceException because the Contact\'s User property is null.
I\'m having a bit of a moral dilemma, as to if we are using automapper if the right way and if our architecture is valid.I\'m a relatively new developer but this just feels wrong to me.My colleague is
I have a need to encrypt the value of a specific set of fields when stored in the DB. I am using LINQ-to-SQL.