This project is read-only.

Map object source type to two property in the destination object

Feb 24, 2012 at 9:45 PM


Is posible to map the following scenario ?

public class ViewEntity


public Guid ID{get;set;}

public String Description {get;set;}


public class Model


public ViewEntity viewEntityProperty{get;set;}


public class ViewModel


public Guid ID_viewEntityProperty{get;set;}

public String Description_viewEntityProperty{get;set;}


My convention is to name ViewEntity properties in the ViewModel with the prefix ID_XXXX and Description_XXXXX (where XXXXX is the name of Model property)

Is it posible ?