title: How to specify which foreign key column to use in views when scaffolding
body: <p>How can I specify which foreign key column has to be used in the views when scaffolding?
  Im some cases MVC seems to be smart enough to take the right column from the other table, but atm I am having an issue with one and was wondering if I can somehow tell which value to use when scaffolding.</p>
  
  <pre><code>public class Tafel
  {
      public virtual int Id { get; set; }
      public virtual int TafelNummer { get; set; }
      public virtual int AantalPlekken { get; set; }
      public virtual int CoordX { get; set; }
      public virtual int CoordY { get; set; }
  }
  </code></pre>
  
  <p>This is the model that I am having issue's with, it now shows the Id's in a selectbox, but I want it to show <code>TafelNummer</code> instead when scaffolding.</p>
  
  <p>Here is a picture that will maybe explain it better --> <a href="https://i.imgur.com/p29S1J4.png" rel="nofollow noreferrer">http://i.imgur.com/p29S1J4.png</a></p>
  
  <p><a href="https://i.stack.imgur.com/9iRTs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9iRTs.png" alt="enter image description here"></a></p>