I have a complex add process for creating a user(and adds roles + other user related information to other tables)
Does anyone know how to use Transactions when adding a user/role or other Identity objects. I cannot seem to access "Database.BeginTransaction"
I have the following UserManager class, i am not sure how i can access the base class "store"
public class UserManager : UserManager<ApplicationUser>
{
public UserManager()
: base(new UserStore<ApplicationUser>(new ApplicationDbContext()))
{
//allows alphanumeric names in username
UserValidator = new UserValidator<ApplicationUser>(this) { AllowOnlyAlphanumericUserNames = false };
}
}
There doesnt seem to be a means to access UserManager.UserStore.Database...
Thanks