2

Now that Microsoft has removed support for the ASP.NET Web Application Management tool in Visual Studio 2013, what is the best way to manage users and roles in your ASP.NET applications?

I'm starting on a new web app, and instead of building my own system for authentication and role management, I planned on using ASP.NET. However, what is the easiest way to add roles and members without directly editing the database?

4

1 回答 1

2

我建议遵循 ASP.NET 身份示例中使用的方法:

https://github.com/rustd/AspnetIdentitySample/tree/master/AspnetIdentitySample/Controllers

他们使用两个控制器:RolesAdminControllerUserAdminController.

使用此方案将允许种子管理帐户然后管理该站点的角色和用户。

我怀疑您可能只是使用新的身份方案将它们直接复制到一个新项目中,只需进行很少的修改即可正常工作。但是,我个人并没有尝试自己做那部分。

于 2013-12-08T04:15:19.513 回答