开发者

.net Membership provider programmatically create application

I see the stored procedure "aspnet_Applications_CreateApplications" What C# method would allow me to run 开发者_如何学Pythonthis programmatically?


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:

  1. The method calls the aspnet_Membership_CreateUser procedure
  2. The above rcedure then calls the aspnet_Applications_CreateApplications procedure

Thus, you will have to write your own code to connect to the database and call this procedure.


Look at the SqlCommand class.


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜