role.AddUserToRole将在其中添加表用户的特定角色 [英] role.AddUserToRole in which table user will get added for the particular role

查看:255
本文介绍了role.AddUserToRole将在其中添加表用户的特定角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai使用role.AddUserToRole在代码中完成添加用户的操作,可以在其中看到表,或者wat是数据库中添加用户的表.

hai using role.AddUserToRole adding user is done in the code where can see the table or wat is the table in the database where the user is added

推荐答案



Roles.AddUserToRole将用户添加到已在其中配置成员身份的数据库的aspnet_Roles表中的角色.

请参阅本文:
http://deepak-sharma.net/2012 /02/05/how-to-configure-asp-net-membership-using-sqlmembershipprovider/ [
Hi,

Roles.AddUserToRole adds user to role in aspnet_Roles table in the database in which you have configured membership.

Refer to this article:
http://deepak-sharma.net/2012/02/05/how-to-configure-asp-net-membership-using-sqlmembershipprovider/[^]


默认情况下,aspnetdb是可用的sqlserver中的数据库.因此我们可以在项目中配置的数据库中找到它.例如:Sqlprovider连接字符串
it will be availabe aspnetdb a default database in the sqlserver.so we can find this to the database to which we configured in our project.Eg:Sqlprovider connection string


这篇关于role.AddUserToRole将在其中添加表用户的特定角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆