public static void Exist() { var context = ApplicationIdentityContext.Create(); IndexChecks.EnsureUniqueIndexOnUserName(context.Users); IndexChecks.EnsureUniqueIndexOnRoleName(context.Roles); }
public AuthRepository() { _ctx = ApplicationIdentityContext.Create(); _userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_ctx.Users)); }