I'm migrating from the old aspnet_membership tables to the newer ASP.NET Identity.
I've followed the steps here .
Except in step 1 I did not create a new application but started with my existiug application, which should come down to the same.
Where I get confused is at step Creating models and membership pages
.
In my current application I have classes like:
MembershipProvider.vb
RoleProvider.vb
ProfileProvider.vb
These contain a ton of methods, such as CreateUser
, ChangePasswordQuestionAndAnswer
, ResetPassword
etc. So everything needed to handle user administration, but they connect to the old table structure.
Where are these classes and methods in the new ASP.NET Identity implementation?
UserManager
is the class you want for users CRUD. RoleManager
is for CRUD related to roles.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.