title: Edit Composed key in AspNetUserRoles Table
body: <p>I am using MCV5 with ASP Identity and made some modification in table AspNetUserRole:</p>
  
  <pre><code>public class AspNetUserRole : IdentityUserRole
  {
      [key]
      public string Id { get; set; }
  }
  </code></pre>
  
  <p>because I need to add Id key column and integrate it to composite key (UserId and RoleId) to become like that (UserId,RoleId and Id)</p>
  
  <p>Code for onModelCreating:</p>
  
  <pre><code>protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
  {
      modelBuilder.Entity&lt;AspNetUserRole&gt;().HasKey(r =&gt; new { r.Id , r.RoleId, r.UserId});
           base.OnModelCreating(modelBuilder);
  }
  </code></pre>
  
  <p>but I have Id as a normal string column in database without any primary key constrains</p>