Example #1
0
        public static void Exist()
        {
            var context = ApplicationIdentityContext.Create();

            IndexChecks.EnsureUniqueIndexOnUserName(context.Users);
            IndexChecks.EnsureUniqueIndexOnRoleName(context.Roles);
        }
Example #2
0
 public AuthRepository()
 {
     _ctx         = ApplicationIdentityContext.Create();
     _userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_ctx.Users));
 }