I have added two properties to ApplicationUser
class of asp.net mvc identity as below:
public class ApplicationUser : IdentityUser
{
public string Name { get; set; }
public string Phone { get; set; }
public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager)
{
// Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
// Add custom user claims here
return userIdentity;
}
}
I added those two properties in my view too and now i can create account and log in with newly created account but SURPRISINGLY i don't see the data back in the database table?! What is the trick? I found a similar question but couldn't find a way how to solve my issue. any help will be appreciated!
Not to forget: There is no problem with the connection string all is well about that.