You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI,
I get an error, I have tried to code along the whole courser from start to here twice and its always the same error when i try to update the database:
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Product_ApplicationType_ApplicationTypeId".
The conflict occurred in database "Rocky", table "dbo.ApplicationType", column 'Id'.
Hi everyone, u need to delete data from table(Product). As i read from forums, the problem is we added records to table with null application types. This causing the problem. Delete records from Product after than try the run 'update-database' command from command console :) It worked for me.
HI,
I get an error, I have tried to code along the whole courser from start to here twice and its always the same error when i try to update the database:
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Product_ApplicationType_ApplicationTypeId".
The conflict occurred in database "Rocky", table "dbo.ApplicationType", column 'Id'.
Failed executing DbCommand (8ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE [Product] ADD CONSTRAINT [FK_Product_ApplicationType_ApplicationTypeId] FOREIGN KEY
([ApplicationTypeId]) REFERENCES [ApplicationType] ([Id]) ON DELETE CASCADE;
The text was updated successfully, but these errors were encountered: