title: Multiplicity error in one to Many Relationship
body: <p>I have multiple entities nested together and when I try and Add the survey class I get the error</p>
  
  <blockquote>
    <p>Multiplicity constraint violated. The role 'Response_Pages_Source' of the relationship 'SurveyMonkeyAPIv3.Response_Pages' has multiplicity 1 or 0..1.</p>
  </blockquote>
  
  <p>Since they both inherit Entity </p>
  
  <pre><code>public abstract class Entity  :IEquatable&lt;Entity&gt;
  {
  
      [DataMember]
      public virtual long Id { get; set; }
  
      public override int GetHashCode()
      {
          return Convert.ToInt16(Id);
      }
  
      public bool Equals(Entity other)
      {
          return false;
      }
  }
  </code></pre>
  
  <p>Survey Entity </p>
  
  <pre><code>public class Survey : Entity, IEquatable&lt;Survey&gt;
  {
  //More fields//
      [DataMember]
      public string AnalyzeUrl { get; set; }
  
  
      [DataMember]
      [DatabaseGenerated(DatabaseGeneratedOption.None)]
      public override long Id { get; set; }
  
      [DataMember]
      public string Language { get; set; }
  
      [DataMember]
      public int? PageCount { get; set; }
      [DataMember]
      public virtual List&lt;Page&gt; Pages { get; set; }
      [DataMember]
      public string Preview { get; set; }
      //More Fields
      public bool Equals(Survey other)
      {
          return this.Id == other.Id;
      }
  }
  </code></pre>
  
  <p>and Page </p>
  
  <pre><code>public class Page : Entity, IEquatable&lt;Page&gt;
  {
      [DataMember]
      public string Description { get; set; }
  
      [DataMember]
  
      [DatabaseGenerated(DatabaseGeneratedOption.None)]
      public new long? Id { get; set; }
  
      [DataMember]
      public int? Position { get; set; }
  
      [DataMember]
      public int? QuestionCount { get; set; }
     //More Objects
  
      // public long SurveyId { get; set; }
      // public List&lt; Survey&gt; Survey   { get; set; }
      //tried including these , can't set in my automappers
  </code></pre>
  
  <p>but I cannot see a way to resolve this issue.</p>
  
  <p>ADDED: </p>
  
  <p>Was pointed to Response Entity , which follows</p>
  
  <pre><code>public class Response : Entity, IEquatable&lt;Response&gt;
  {
      [DataMember]
      public string AnalyzeUrl { get; set; }
  
      [DataMember]
      public CollectionMode? CollectionMode { get; set; }
  
      [DataMember]
      public long? CollectorId { get; set; }
  
      [DataMember]
      public string CustomValue { get; set; }
  
      //[DataMember]
      //public Dictionary&lt;string, string&gt; CustomVariables { get; set; }
  
      [DataMember]
      public DateTime? DateCreated { get; set; }
  
      [DataMember]
      public DateTime? DateModified { get; set; }
  
      [DataMember]
      public string EditUrl { get; set; }
  
      [DataMember]
  
      [DatabaseGenerated(DatabaseGeneratedOption.None)]
      public new long? Id { get; set; }
  
      [DataMember]
      public string IpAddress { get; set; }
  
      //[DataMember]
      //public Dictionary&lt;string, object&gt; LogicPath { get; set; }
  
      //[DataMember]
      //public Dictionary&lt;string, object&gt; Metadata { get; set; }
      [DataMember]
      public virtual List&lt;object&gt; PagePath { get; set; }
  
      [DataMember]
      public virtual List&lt;ResponsePage&gt; Pages { get; set; }
      [DataMember]
      public virtual List&lt;ResponseQuestion&gt; Questions { get; }
  
      [DataMember]
      public long? RecipientId { get; set; }
  
      [DataMember]
      public ResponseStatus? ResponseStatus { get; set; }
  
      [DataMember]
      public long? SurveyId { get; set; }
  
      [DataMember]
      public int? TotalTime { get; set; }
  
      public bool Equals(Response other)
      {
          return Id == other.Id;
      }
  }
  </code></pre>