I have added some values to RegisterApplicationUser.razor (first name, last name, locationId drop-down) and this has gone well with Radzen. I intend to persist these fields to a separate table that will have FK to AspNetUsers.Id.
When I add the parameters to AccountController.Register() for firstName and lastName, they magically get passed in. This may be because I added the three properties to ApplicationUser as NotMapped. However, have not been able to get the value of the locationId drop-down into Register():
public async Task<IActionResult> Register(string userName, string email, string password, string firstName, string lastName, int locationId)
What is the mechanism that passes values to Register()? There is something small which I need to tell it so that the location drop-down value comes through.
With all this said, something smells wrong about editing generated code, and I should instead be doing something to generate the desired code. So a different/broader question might be "is it possible to add 3 custom fields to the asp.net identity in some way such that one can be FK to an application table"? My parallel/1:1 table approach is very close, I'm only lacking the locationId value.