I want to track additional user profile information in my own table rather than the default tables setup by ASP.Net. So how do you make a foreign key that maps to the aspnet_Users.UserId field in my UserInfoModel class?
public class UserInfoModel
{
[MaxLength(30)]
[Display(Name = "First Name")]
public string FirstName { get; set; }
[MaxLength(50)]
[Display(Name = "Last Name")]
public string LastName { get; set; }
}
I’ve done something similar:
And here are the configurations for those tables:
Your database context: