'Get properties from users class inherited from IdentityUser
I have created a class named "Users" inherited from IdentityUser like this:
public class Users:IdentityUser
{
public int UserId { get; set; }
[MaxLength(50)]
public string FullName { get; set; } = "";
[Required(AllowEmptyStrings = true)]
[MaxLength(50)]
[DataType(DataType.Text)]
public string CityName { get; set; } = "";
[MaxLength(11),MinLength(11)]
public string Mobile { get; set; } = "";
}
I added a migration and updated database. How can I access "FullName" in views,controllers and layouts?? userManager doesn't have a property As "fullName".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
