User我的申请中有一个课程
public class User
{
[Required, MinLength(3), MaxLength(10)]
public string FirstName { get; set; }
[MinLength(3), MaxLength(10)]
public string MiddleName { get; set; }
[Required, MinLength(3), MaxLength(10)]
public string LastNmae { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
then i try to scaffold controller with view for this class, the drop down for model class included the User class and other classes that extend it such as Student and Admin
Then i make the User class inherit IdentityUser class
public class User: …Run Code Online (Sandbox Code Playgroud)