c# - Automapper map source to dest with custom object -


how can map:

object: (

   class cashcasedto { string caseid {get;set;} double casetotalamount {get;set; } 

to:

public class cashcase {     public string id { get; set; }  }  public class cashcasedifference {     public decimal amount { get; set; } } 

i have problem mapping amount difference.amount.

what should use? custom value resolver or converter?

this conversion supported default in latest version.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -