title: Error: ForeignKeyAttribute on property is not valid
body: <p>I am trying to 'get' an entity from a database using Entity Framework - that has a one to one relationship with another entity. There is a foreign key called "ImageId" on ContactModel, and yet I am getting this error: </p>
  
  <blockquote>
    <p>'The ForeignKeyAttribute on property 'Image' on type
    'Models.ContactModel' is not valid. The foreign key name 'ImageId' was
    not found on the dependent type 'Models.ContactModel'. The Name value
    should be a comma separated list of foreign key property names.'</p>
  </blockquote>
  
  <p>I am obviously doing something wrong but can't figure out what. </p>
  
  <p>These are my entity classes: </p>
  
  <pre><code> [Table("Contact")]
  public class ContactModel
  {
      public int Id { get; set; }
  
      [Required]
      public string  Name { get; set; }
  
      [Required]
      public string Phone { get; set; }
  
  
      public string Email { get; set; }
  
      [ForeignKey("ImageId")]
      public virtual ImageModel Image { get; set; }
  }
  
  [Table("ContactImage")]
  public class ImageModel
  {
      public int Id { get; set; }
  
      public byte[] Image { get; set; }
  }
  </code></pre>
  
  <p>Any suggestions would be kindly appreciated. </p>
  
  <p>Thanks!</p>