The INSERT statement conflicted with the FOREIGN KEY constraint "FK_StudyClasses_AspNetUsers_AppUserId".
Asjad Butt
71
Reputation points
Hi so im making lets say table 1 it will have a foregin key from table 2 now the table 2 is an asp.net identity user and has an id that is created by entity framework i want to use the asp net user id as a foriegn key but when i do and try to insert data through lets say swagger or postman i get the above error of insert statment conflicted ive been using this foreign key system through out my application but it is this asp net user table that gives an error
Developer technologies | ASP.NET | ASP.NET Core
4,828 questions
Developer technologies | ASP.NET | Other
3,601 questions
Sign in to answer