title: Automapper Mapping Multiple Properties to Single Property
body: <p>I am need help mapping my Domain Object to a ViewModel for use with my C#/MVC App</p>
  
  <p>In the FormAnswer Class there can only be 1 Answer Type (AnswerCurrency, AnswerDateTime, AnswerBool,etc)  this is enforced in the Database and Application Logic.</p>
  
  <p>If a Answer exists it will needs to be to Mapped to the Answer Property in the FormAnswerModel if all values are null the Answer is a Empty String.</p>
  
  <pre><code>public class FormQuestion
  {
     public int Id {get; set;)
     public string DataType {get; set;} 
     public string Question {get; set;} 
  }
  
  public class FormAnswer
  {
     public int Id {get; set;)
     public int QuestionId {get; set;)
     public double? AnswerCurrency {get;set}
     public dateTime? AnswerDataTime {get;set}
     public bool? AnswerBool {get;set}
     public string AnswerString{get;set}
     public string AnswerText{get;set}
  }
  
  public class FormAnswerModel
  {
     public int Id {get; set;)
     public int QuestionId {get; set;)
     public string Answer{get;set}
  }
  </code></pre>