I have been searching for the last few weeks on how to do this successfully and all I keep getting are errors or database columns not found. I am almost to the point of giving up on coding altogether.
I created a Code-First class to modify the default (useless) AspNetUsers table to have profile information in another table and then reference that table back to AspNetUsers using a PK/FK relationship as follows:
using Microsoft.AspNet.Identity.EntityFramework;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
public class ApplicationUser : IdentityUser
{
public virtual UserInfo UserInfo { get; set; }
}
[Table("UserInfo")]
public class UserInfo
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("UserInfoID")]
public int UserInfoID { get; set; }
[Column("Salutation")]
public stri ...
Go to the complete details ...