I am developing Asp.net web application in visual studio 2013.
I have a requirement to add new ApplicationUsers from backend (SSMS trigger)? Any stored procedure?
In other words, is there any option to do the following from SQL Server trigger that I am doing from C# right now?
ApplicationUserManager::Create
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var signInManager = Context.GetOwinContext().Get<ApplicationSignInManager>();
var user = new ApplicationUser() { UserName = Email.Text, Email = Email.Text };
IdentityResult result = manager.Create(user, Password.Text);
Best regards,
Aucun commentaire:
Enregistrer un commentaire