title: ASP .NET Core Identity custom ApiAuthorizationDbContext
body: <p>I'm working with ASP .NET Core 3.0 with Angular project. I see this new <code>ApiAuthorizationDbContext</code> and I wanted to override the table name and user id (to int) but there is no way I can do it. Does any body know a trick?</p>
  <p>This is the class for the context to override the table name but it creates <code>AspNetUser</code> and <code>User</code> table. Why doesn't it just create one as usual?</p>
  <pre><code>public class ApplicationDbContext : ApiAuthorizationDbContext&lt;AppUser&gt;
      {
          public ApplicationDbContext(
              DbContextOptions options,
              IOptions&lt;OperationalStoreOptions&gt; operationalStoreOptions) : base(options, operationalStoreOptions)
          {
          }
  
          protected override void OnModelCreating(ModelBuilder modelBuilder)
          {
              base.OnModelCreating(modelBuilder);
  
              modelBuilder.Entity&lt;AppUser&gt;(entity =&gt; { entity.ToTable(name: &quot;User&quot;); });
              modelBuilder.Entity&lt;AppRole&gt;(entity =&gt; { entity.ToTable(name: &quot;Role&quot;); });
          }
      }
  </code></pre>
  <p>Here is my user:</p>
  <pre><code>public class AppUser : IdentityUser
  {
  }
  </code></pre>
  <p>Normaly I override the primary key with <code>AppUser&lt;int&gt;</code> but it doesn't work because of the <code>ApiAuthorizationDbContext</code>.</p>
  <p>Any ideas?</p>