简体   繁体   English

ASP.NET Identity中新的成员资格提供程序类在哪里?

[英]Where are the new membership providers classes in ASP.NET Identity?

I'm migrating from the old aspnet_membership tables to the newer ASP.NET Identity. 我正在从旧的aspnet_membership表迁移到较新的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. 除了在步骤1中,我没有创建新应用程序,而是从我的existiug应用程序开始,应该归结为相同。

Where I get confused is at step Creating models and membership pages . 让我感到困惑的是在步骤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. 这些包含大量方法,例如CreateUserChangePasswordQuestionAndAnswerResetPassword等。因此,处理用户管理所需的所有内容,但它们都连接到旧表结构。

Where are these classes and methods in the new ASP.NET Identity implementation? 新的ASP.NET Identity实现中这些类和方法在哪里?

UserManager is the class you want for users CRUD. UserManager是您希望用户CRUD使用的类。 RoleManager is for CRUD related to roles. RoleManager用于与角色相关的CRUD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM