Is it possible to change the name of the columns of the AspNetUsers table that Identity creates in the database?
No. The name of the columns is essential for a security check done by IdentityDbContext
at context initialization ( see here of lines 127 to 132 ).
You can rename tables if you want. I explain this here .
Another question is, how do I add new fields in this table, one of which will be related to another table?
Deriving entity:
public class Usuario : IdentityUser
{
public String InformacaoNova1 { get; set; }
public String InformacaoNova2 { get; set; }
public String InformacaoNova3 { get; set; }
}
And typing the context with your class Usuario
:
public class MeuContexto : IdentityDbContext<Usuario> { ... }
I show you how to change some aspects of ASP.NET Identity here .