title: EF Code First Fluent API specifying the Foreign Key property
body: <p>I have a class AgentBalance with an association to Agent, thus:</p>
  
  <pre><code>public class AgentBalance
  {
      ...
  
      public int AgentId { get; set; }
  
      public virtual Agent Agent { get; set; }
  
  }
  </code></pre>
  
  <p>AgentId is detected as the FK for the Agent relationship by convention, but I want to make it explicit in the Mapping class, to be safer against future changes.  If Agent had a collection of Balances then I know how to do this e.g.:</p>
  
  <pre><code>HasRequired(t =&gt; t.Agent).WithMany(a =&gt; a.Balances).HasForeignKey(t =&gt; t.AgentId);
  </code></pre>
  
  <p>However, Agent <em>does not</em> have a collection of Balances  -  I don't want that association to be reverse navigable.  But without the .WithMany in the mapping I don't  get the option to specify .HasForeignKey. Is there another way?  (N.B.  I know I could also do this using attributes, but I want to use the fluent API mapping).</p>