title: Complex relationship between entities with Entity Framework
body: <p>Maybe it is a duplicate but I couldn't find any topic like this. </p>
  
  <p>I am using Entity Framework and have two tables in my database: </p>
  
  <pre><code>public class A
  {
      public virtual B B1 { get; set; }
      public virtual B B2 { get; set; }
  }
  
  public class B
  {
      public virtual A A1 { get; set; }
  }
  </code></pre>
  
  <p>And there is no relation between B1 and A1 or B2 and A1. It is like 3 one way relation. How can you do that in Entity Framework?</p>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>An error occurred while saving entities that do not expose foreign key properties for their relationships</p>
  </blockquote>
  
  <p>Does anyone know how to handle this ?</p>
  
  <p>Thanks in advance</p>