ASP.NET Identity customize with own database

2

I already have my database ready with the login table, and I did not want to change it, so I would like to know if I can customize it with the tables I already have! and how to do it!

Below the mapping of the login table in my database:

public partial class cnet_logon
{
    public long id_pessoa { get; set; }
    public long id_pessoaContato { get; set; }
    public string userpassword { get; set; }
    public bool ativoAcesso { get; set; }
    public bool ativoConsumo { get; set; }
    public virtual ncl_pessoa ncl_pessoa { get; set; }
    public virtual ncl_pessoaContato ncl_pessoaContato { get; set; }
}
    
asked by anonymous 12.08.2014 / 21:30

1 answer

1

Since it uses the Entity Framework to access users, simply map its class of users and provide the context for UserStore .

    
13.08.2014 / 00:29