I am building asp.net core mvc project with identity accounts and when I hit the register button (in register page) i got this exception: An unhandled exception occurred while processing the request. SqlException: Cannot insert the value NULL into column 'FirstName', table 'VolunteerCenterDB.dbo.AspNetUsers'; column does not allow nulls. INSERT fails. The statement has been terminated. Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__189_0(Task<SqlDataReader> result)
I am confused if problem is my Users's model or in Program.cs
I thought I should make firtName and lastName nullable but I don't think this make sence. Since I have any other options I do not know what else i could do... I am providing User.cs and Program.cs code https://pastebin.com/C3iCwseY
*Unfortunately I can't share the github because it's private repo and I am working with other person