C#C
C#4y ago
Bobby Bob

Entity Framework SQL Error 19 - Foreign Key Constraint Failed

I've described the problem in significant detail here: https://stackoverflow.com/questions/74162855/entity-framework-sql-error-19-foreign-key-constraint-failed

Not sure why I am getting the error I am getting. If you guys want to replicate the error, you should change the connection string Data Source = to your respective path of where the database CoffeeShop.db is in
Stack Overflow
Github Repo: https://github.com/blueboy90780/Coffee-POS-System/tree/master
I have small console application using .NET 6 and EF Core 6.0 with an SQLite database. When running my code I get the foll...
Was this page helpful?