C
C#3y ago
Gage

Entity Framework Core DB issues [Answered]

Introducing FOREIGN KEY constraint 'FK_Sections_Teachers_TeacherID' on table 'Sections' 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.
2 Replies
Gage
GageOP3y ago
When trying to update a migration I get a massive printstack of issues It's unclear to me what the problem is Commands I am using in PMC are
Drop-Database -Confirm
dotnet ef database update
dotnet ef migrations add InitialEntities
dotnet tool install dotnet-ef
dotnet new tool-manifest
Drop-Database -Confirm
dotnet ef database update
dotnet ef migrations add InitialEntities
dotnet tool install dotnet-ef
dotnet new tool-manifest
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server