asp net identity add a unique fields to user

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

Also in C#: