79781796

Date: 2025-10-03 13:07:19
Score: 0.5
Natty:
Report link

Found a solution, searched the migrations themselves and changed from Cascading to Restrict

migration.AddForeignKey(
name: "FK_Films_People_ComposerId",
column: "ComposerId",
proncipalTable: "People",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: James