Iago
SqlException: The INSERT statement conflicted with the FOREIGN KEY
Guys, I have this error in ASP.NET 8
"Internal Exception 1:
SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_RegistrationFormModels_SportModel_SportId". The conflict occurred in database "RegistrationFormDb", table "dbo.SportModel", column 'Id'."
I am inserting the value 2 in this sport_id, but this value 2 exists in the bank. I don't know why it's giving this error
6 replies