public static void Main(string[] args)
Console.WriteLine(r.cust_name);
Console.WriteLine(r.appl_no);
Console.WriteLine(r.appl_date);
Console.WriteLine(r.cust_name);
Console.WriteLine(r.appl_no);
Console.WriteLine(r.appl_date);
private static DestinationVM GetDest()
public static DestinationVM MyConvert(SourceVM vm)
DestinationVM destVm = GetDest();
var config = new MapperConfiguration(cfg =>
cfg.CreateMap<SourceVM, DestinationVM>()
.ForAllMembers(opt => opt.Condition(src => src != null));
config.CreateMapper().Map(vm, destVm);
public string appl_no { get; set; }
public string reff_number { get; set; }
public string cust_name { get; set; }
public string merchant_id { get; set; }
public class DestinationVM
public string appl_no { get; set; }
public string reff_number { get; set; }
public string cust_name { get; set; }
public string merchant_id { get; set; }
public Nullable<System.DateTime> appl_date { get; set; }