title: Multiplicity not allowed. Entity Framework
body: <p>I am attempting to use MVC4 for the first time and am receiving the following error when I try to create a controller?  Could someone kindly steer me in the right direction?</p>
  
  <hr>
  
  <h2>Microsoft Visual Studio</h2>
  
  <blockquote>
    <p>System.Data.Entity.Edm.EdmAssociationEnd: : Multiplicity is not valid
    in Role 'PropertyData_DNISData_Target' in relationship
    'PropertyData_DNISData'. Because the Dependent Role properties are not
    the key properties, the upper bound of the multiplicity of the
    Dependent Role must be '*'.</p>
  </blockquote>
  
  <pre><code>public class PropertyData
  {
      [Key]
      public virtual string PropertyID { get; set; }
  
      [ForeignKey ("DNISData")]
      public virtual string DNIS { get; set; }
  
      public virtual string PropertyName { get; set; }
      public virtual string PropertyGreeting { get; set; }
      public virtual string PropertyOperator { get; set; }
      public virtual string InvalidEntryPrompt { get; set; }
      public virtual string NoEntryPrompt { get; set; }
      public virtual string Comment { get; set; }
      public virtual DNISData DNISData { get; set; }
  
  }
  
  public class DNISData
  {
      [Key]
      public virtual string DNIS { get; set; }
      [ForeignKey("PropertyData")]
      public string PropertyID { get; set; }
      public virtual string VDN { get; set; }
      public virtual string PropertyGreeting { get; set; }
      public virtual string Comment { get; set; }
      public virtual PropertyData PropertyData { get; set; }
  }
  
  public class DigitData
  {
      [ForeignKey ("DNISData")]
      [Key]
      public virtual string DNIS { get; set; }
      [Key]
      public virtual string Digit { get; set; }
      public virtual string InvalidEntryPrompt { get; set; }
      public virtual DNISData DNISData { get; set; }
  }
  </code></pre>