title: MVC EF Code First one to one relationship error
body: <p>I want to have a list of stands (at a trade show) and a list of exhibitors.</p>
  
  <p>The list of stands is separate to the list of exhibitors - however, once registered, I want the exhibitor to be able to book a stand.</p>
  
  <p>When they select/book a stand - I would like to then be able to have a list the stands in my view, and also show the associated exhibitor who has booked it.</p>
  
  <p>Likewise, I would like to list in another view, the exhibitors, and also which stand they have booked.</p>
  
  <p>So I'm trying to setup a one to one relationship (using EF CodeFirst).</p>
  
  <p>However, when trying to add a controller for either the Stand or the Exhibitor, I get the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/LFKFv.png" alt="enter image description here"></p>
  
  <p>My models are:</p>
  
  <pre><code> public class Stand
  {
      public int StandID { get; set; }
      public string Description { get; set; }
      public bool Booked { get; set; }
      public int ExhibitorID { get; set; }
      public virtual Exhibitor Exhibitor { get; set; }
  
  }
  
   public class Exhibitor
  {
      public int ExhibitorID { get; set; }
      public string Company { get; set; }
      public int StandID { get; set; }
      public virtual Stand Stand { get; set; }
  
  }
  </code></pre>
  
  <p>I'm certain it's something to do with the "Virtual" part of the models.</p>
  
  <p>Can anyone please help point out what should be updated, to allow the connection?</p>
  
  <p>Thank you,</p>
  
  <p>Mark</p>