title: unconventional foreign key fields maps to NULL in EF6
body: <p>I am using EF6. I have two models PowerLine and PowerSource. PowerSource has a foreign key column that points to PowerLine. The problem is that the PowerLine object is populating with List of PowerSource but the SourcePowerLine navigation property of PowerSource is always NULL. My models are as follows : </p>
  
  <pre><code>public class PowerLine
  {
      [Key]
      public int ID { get; set; }                                    
      public virtual ICollection&lt;PowerSource&gt; PowerSources { get; set; }    
  }
  
  public class PowerSource
  {
      [Key]
      public int ID { get; set; }    
      public int SourcePowerLineID {get;set;}
  
      [ForeignKey("SourcePowerLineID")]        
      public virtual PowerLine SourcePowerLine { get; set; }                                                         
   }
  </code></pre>
  
  <p>I tried Column(Order) attribute as well to set the correct order also I tried to use Fluent API like as follows : </p>
  
  <pre><code>        modelBuilder.Entity&lt;PowerSource&gt;()
                      .HasRequired(c =&gt; c.SourcePowerLine )
                      .WithMany(b =&gt; b.PowerSources)
                      .HasForeignKey(c =&gt; c.SourcePowerLineID);
  </code></pre>