Open MAS-OUD opened 1 year ago
It depends on the database provider so you cannot guarantee that behavior, for example, I believe SQL Server maintains an internal counter but SQLite might not. Also, if you are using SQLite, are you recopying the database each time you restart the console app? Regardless, the note is about the general concept of why my code uses the name and not the ID to identify the added rows, not about specific delete behavior.
Regarding the note at the bottom of page 477, it turned out that by deleting the product with ID 78, the next product to be added is again 78, not 79.