C#C
C#16mo ago
51 replies
Scipio

'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3

I am getting the following error when attempting to add to add a record to my SQLite database:
SqliteException: SQLite Error 19: 'FOREIGN KEY constraint failed'
The exception occurs in ClientViewModel.cs - line 74

Link to my project:
https://github.com/SpaceWarlord/Roster
GitHub
Contribute to SpaceWarlord/Roster development by creating an account on GitHub.
GitHub - SpaceWarlord/Roster
Was this page helpful?