title: How can I change default ASP.NET Identity table names in .NET CORE?
body: <p>I've started with .NET Core, in  MVC 5 I changed default table names for example: AspNETUsers to Users in  this way and it worked perfectly:
  In <strong>IdentityModels</strong> Class I dded:</p>
  <pre><code>protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
      {
          base.OnModelCreating(modelBuilder);
  
          modelBuilder.Entity&lt;IdentityUser&gt;().ToTable(&quot;Users&quot;).Property(p =&gt; p.Id).HasColumnName(&quot;UserId&quot;);
          modelBuilder.Entity&lt;ApplicationUser&gt;().ToTable(&quot;Users&quot;).Property(p =&gt; p.Id).HasColumnName(&quot;UserId&quot;);
          modelBuilder.Entity&lt;IdentityUserRole&gt;().ToTable(&quot;UserRoles&quot;);
          modelBuilder.Entity&lt;IdentityUserLogin&gt;().ToTable(&quot;UserLogins&quot;);
          modelBuilder.Entity&lt;IdentityUserClaim&gt;().ToTable(&quot;UserClaims&quot;);
          modelBuilder.Entity&lt;IdentityRole&gt;().ToTable(&quot;Roles&quot;);
      }
  </code></pre>
  <p>But it does not work in ASP.NET CORE (MVC 6).
  Can  Anyone help me?
  Thanks a lot.</p>