5

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 !

Nkosi
  • 235,767
  • 35
  • 427
  • 472
Ihenry
  • 111
  • 1
  • 2
  • 12
  • You might want to take a look at this : http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity There are a lot of resource in there to get you started. – hendryanw Mar 31 '16 at 03:25
  • so many things i need to learn , thank u :D – Ihenry Mar 31 '16 at 04:00
  • 1
    This post helped me alot in the beginning. http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-1 I think you might be more interested in Part two of this series, but Part one is worth a read as well – monstertjie_za Mar 31 '16 at 05:02

1 Answers1

1

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 .

Community
  • 1
  • 1
Ihenry
  • 111
  • 1
  • 2
  • 12