Relative Content

Tag Archive for c#sql-serverdatabaseentity-frameworkasp.net-core

Error while creating a database Dot Net 6

During the editing of ContractTypeOne and ContractTypeTwo models I received an error.
Error:
Introducing FOREIGN KEY constraint ‘FK_ContractTypeTwos_ContractTypeOnes_ContractTypeOneId’ on table ‘ContractTypeTwos’ may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO
ACTION, or modify other FOREIGN KEY constraints.
Could not create constraint or index. See previous errors.