How to set username is not unique in aspnet id

I have a problem setting up a username table in aspNet Identity. Currently, I can log in and register using email. After registration, the user's email is filled in the email column and username. I now know how to separate them so that the username and email address are unique. I followed this article. http://marcinjuraszek.com/2014/03/asp-net-identity-2-0-0-username-and-email-separation.html I have already configured the primary key from the string to int. But now I want to remove the unique restriction on the username field. In addition, two users with a different email identifier may have the same name. I’m working on a social application, where once there may be, a user’s account can increase to 100 thousand, then for each user there can be no unique name except an email name. please suggest me how to reach it? any article or any suggestion or any way to customize it?

+5
source share

Source: https://habr.com/ru/post/1236689/


All Articles