我正在尝试在外部认证服务(C#)上阅读本教程.我需要一些初步的解释才能继续前进.查看发布MVC5的默认模板,我看到:
// You can add profile data for the user ...
public class ApplicationUser : IdentityUser
{
public string HomeTown { get; set; }
public DateTime? BirthDate { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
如果我想将其称为User而不是ApplicationUser,该怎么办?也许我想添加导航属性,以便我可以与其他模型建立关系?另外,当我查看表时,名称是AspNetUsers而不是ApplicationUser.最后,如果我想使用自己的上下文怎么办?
谢谢你的帮助.