title: Entity Framework mapping between ASP Identity user and other tables - change Id column
body: <p>I have a standard <code>Identity</code> user in my app...</p>
  <pre><code>public class ApplicationUser : IdentityUser&lt;int, ApplicationUserLogin, ApplicationUserRole, ApplicationUserClaim&gt;
  {...
  </code></pre>
  <p>...Which has <code>Id</code> as primary key.
  <strong>How can I change <code>Id</code> to UserId?</strong><br/>
  I ask this because I have table that should be connected with <code>AspNetUsers</code> table.
  And I did it like this:</p>
  <pre><code>public class ApplicationUser : IdentityUser&lt;int, ApplicationUserLogin, ApplicationUserRole, ApplicationUserClaim&gt;
  {...
  public virtual ICollection&lt;JobApply&gt; JobApplies { get; set; }
  </code></pre>
  <p>And <code>JobApply</code> code is:</p>
  <pre><code>public class JobApply
  {...
  public int ApplicationUserId { get; set; }
  public virtual ApplicationUser ApplicationUser { get; set; }
  </code></pre>
  <p>The result of this is this:<br/>
  <img src="https://i.stack.imgur.com/rGqLP.png" alt="enter image description here" />
  <br/>
  I want to make this better somehow.<br/>
  I want to have <code>UserId</code> instead <code>Id</code> so columns in both table to be names UserId.<br/>
  Is there a way to do this?</p>