Linked Questions

Popular Questions

I am trying to make relation relationship of AspNetUser Table with the StaffHotel Table and trying to pass value to the staff table when a user is doing registration.

Staff Table

Application User Class

when i migrate it,it creates the foreign key successfully.

Entity

But when i am trying to pass the value of id of AspnetUser Table to ApplicationUser_Id of the StaffHotel Table It is not saving the data.And showing the Problem that 'StaffHotel' does not contain the defination of 'ApplicationUser_Id'

Register Method of the account Controller

Related Questions