title: Double self-referencing property with Entity Framework
body: <p>This code represents in small scale my problem:</p>
  
  <pre><code>public class Person
  {
      public int ID { get; set; }
      public string Name { get; set; }
  
      public virtual Person Parent { get; set; }
      public virtual ICollection&lt;Person&gt; Friends { get; set; }
  }
  </code></pre>
  
  <p>When I use this class in an Entity Framework (4.1) scenario, the system generates one only relation, thinking that Parent and Friends are the two faces of the same relation.</p>
  
  <p>How can I tell to semantically separate the properties, and generate two different relations in SQL Server (since we can see that Friends are totally different from Parents :-)).</p>
  
  <p>I tried with the fluent interfaces, but I think I don't know the right calls to do.</p>
  
  <p>Thanks to all.</p>
  
  <p>Andrea Bioli</p>