SOLUTION: Change the Up Method of the migration on the ForeignKey field as follows:
.ForeignKey("dbo.Creators", t => t.SenderId, cascadeDelete: false)
.ForeignKey("dbo.Certificates", t => t.CertificateId, cascadeDelete: false)
Change cascadeDelete to false.
No comments:
Post a Comment