That's just from the UserName to get rid of. IdentityUser
is an implementation of the interface IUser
. You can take the source Identity
and change the interface IUser.
But you can try to block the UserName the email and deleted from the model database. Then, the idea is that the UserName does will not participate, but in practice did not check.
public class MyUser:IdentityUser
[AlwaysValid] //Always valid
[Map] //not mapim in EFCore
public string UserName
get => Email;
set => Email = value;
public class AlwaysValid : ValidationAttribute
public override bool IsValid(object value) => true;