asp net identity add a unique fields to user

Code Example - asp net identity add a unique fields to user

                
                        modelBuilder.Entity<ApplicationUser>()
        .HasIndex(b => b.CustomProperty)
        .IsUnique();