Search code examples
c#asp.net-mvc-5asp.net-identity

How to custom user table in MVC 5 using identity?


I want to using identity technology in MVC 5 with custom table , but i don't know how to do it . For example, my [user] table is

id primary key identity(1,1),
username  nvarchar(50),
password nvarchar(50),
email varchar(100),
address nvarchar(100)
.... some information

how i can do ? thank for any help !


Solution

  • Finally , I did it ! if another have problem like me please read some links

    Trying to change table names in ASP.NET Identity 2.0 http://www.codeproject.com/Articles/796940/Understanding-Using-and-Customizing-ASP-NET-Identi

    You need using code first migrations for your model and update it using package console command
    update-database .