.net 会员提供商以编程方式创建应用程序
我看到存储过程“aspnet_Applications_CreateApplications” 什么 C# 方法允许我以编程方式运行它?
I see the stored procedure "aspnet_Applications_CreateApplications"
What C# method would allow me to run this programmatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
过程
aspnet_Applications_CreateApplications
由 ASP.Net 中的多个 SQL 提供程序使用,例如 Membership、Role 和 Personalization 提供程序。但该过程实际上并不是通过 C# 代码调用的。相反,该过程由其他过程调用。例如:在 Sql Membership Provider 中,当您调用 CreateUser 方法时:
aspnet_Membership_CreateUser
过程aspnet_Applications_CreateApplications
过程因此,您必须编写您自己的代码来连接到数据库并调用此过程。
The procedure
aspnet_Applications_CreateApplications
is used by several of the sql providers in ASP.Net, such as the Membership, Role, and Personalization providers. But the procedure is not actually called through C# code. Instead this procedure is called by other procedures. For example:In the Sql Membership Provider, when you call the CreateUser method:
aspnet_Membership_CreateUser
procedureaspnet_Applications_CreateApplications
procedureThus, you will have to write your own code to connect to the database and call this procedure.
查看
SqlCommand
类。Look at the
SqlCommand
class.AFAIC,ASP.NET 没有通过其成员库提供此功能的直接接口。
如果没有使用 ADO.NET 直接调用该过程,我不确定如何使用此功能。
你能解释一下你想做什么吗?
AFAIC, the ASP.NET provide no direct interface to this functionality through it's membership library.
Short of using ADO.NET to invoke the procedure directly, I'm not sure how you can use this functionality.
Can you explain what you're trying to do?