How to extend IdentityUser?

I used the following article to manually add an ASP.NET identifier to a Web Forms project:

http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project

I noticed that the login page just asks for the username and password, but I want to also add the first name, last name, email address, etc. I tried to create my own class called ApplicationUser, which extends IdentityUser, but this also causes a display error when called IdentityResult result = manager.Create(user, Password.Text);:

Additional information: Mapping and metadata information could not be found for EntityType 'WebFormsIdentity.IdentityExtensions.ApplicationUser'.

Most of the examples that I see when adding additional data to IdentityUser are code related at first, but I generated the first db entry by running aspnet_regsql from the command line to create the aspnetdb database. How to add additional information during user registration?

+3
source share

All Articles