title: How to map from id to string by looking up a property from a different table?
body: <pre><code>public class GebruikerModel
  {
      public String Gebruikersnaam { get; set; }
      public String Wachtwoord { get; set; }
      public String FaculteitModelNaam { get; set; }
      public String InstellingModelMNaam { get; set; }
  
  }
  
  public class FaculteitModel
  {
      public String Naam { get; set; }
  }                                                                                     
  
  public class InstellingModel
  {
      public String naam { get; set; }
  }
  </code></pre>
  
  <p>A user (Gebruiker) is stored in the database as follows:</p>
  
  <pre><code>int id; (PK) 
  String name 
  int FaculteitId
  int InstellingId
  </code></pre>
  
  <p>A faculty (faculteit) and a school (instelling) as follows:</p>
  
  <pre><code>int id; (PK) 
  String name;
  </code></pre>
  
  <p>Edit: Created the domain models using Linq to SQL.</p>
  
  <p>Obviously, I don't want any IDs in my views. So I'm trying to use automapper:</p>
  
  <pre><code>GebruikerModel singleUser = Mapper.Map&lt;Gebruiker, GebruikerModel&gt;(db.Gebruikers.FirstOrDefault());
  </code></pre>
  
  <p>And get the error:(Destination member list)\r\n\r\nUnmapped properties:\r\nFaculteitModelNaam\r\nInstellingModelMNaam\r\n"} AutoMapper.AutoMapperConfigurationException</p>
  
  <p>How can I configure automapper to take the Name from faculty and school to map them to my viewmodel?</p>