.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:
- The method calls the
aspnet_Membership_CreateUser
procedure - 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?
精彩评论