title: How to create custom UserClaims table in MySQL using ASP.NET Core with EF and Identity?
body: <p>I am trying to implement ASP.NET Core Identity in my MySQL database. I want to save claims in table named different that <em>"aspnetuserclaims"</em>. I managed to point custom tables for users using this in my <strong>OnModelCreating()</strong> method in MyContext which inherits from <em>IdentityDbContext</em> class:</p>
  
  <pre><code> modelBuilder.Entity&lt;ApplicationUser&gt;().ToTable("users").Property(p =&gt; p.Id).HasColumnName("Id");
  </code></pre>
  
  <p>But, when I want to do the same with my class which inherits form <strong>IdentityUserClaim</strong> using: </p>
  
  <pre><code>modelBuilder.Entity&lt;ApplicationUserClaim&gt;().ToTable("userclaims").Property(p =&gt; p.Id).HasColumnName("Id");
  </code></pre>
  
  <p>It doesn't work at all.</p>
  
  <p>Both <em>ApplicationUser</em> and <em>ApplicationUserClaim</em> are clean class looking like this: </p>
  
  <pre><code>  public class ApplicationUser : IdentityUser&lt;string&gt; {}
  </code></pre>
  
  <p>Exception:</p>
  
  <blockquote>
    <p>MySqlException: Table 'dbname.aspnetuserclaims' doesn't exist</p>
  </blockquote>