Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 !

like image 830
Ihenry Avatar asked Nov 09 '22 17:11

Ihenry


1 Answers

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 .

like image 149
Ihenry Avatar answered Nov 14 '22 21:11

Ihenry