Add properties to ApplicationUser #1301
JonathanUzcateguiG
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good afternoon. I am trying to extend the ApplicationUser class by adding first name and last name, and then apply the migration to see the changes in the database. So far, I haven't been able to, and I've encountered various problems. Do you have any suggestions? I don't know if I'm doing something wrong.
public class ApplicationUser : IdentityUser
{
string? Name { get; set; }
string? LstName { get; set; }
}
dotnet ef migrations add AddFirstNameAndLastNameToApplicationUser --context ApplicationDbContext --project Infrastructure.csproj
but it doesn't work (does not create the migration.), and I wanted to know how to make the login return these created data: first name and last name.
Thank you for the help you can provide
Beta Was this translation helpful? Give feedback.
All reactions