You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's possible to delete items with active references, e.g. a food item that's used in an intake entry. Doing do throws an exception in Entity Framework, shutting down the application without actually deleting the item from the database.
Prevent this: add a graceful way of handling the situation:
At least catch the exception and show an explanation.
Ideally, also disable the "delete" button on items that can't be deleted for any reason.
The text was updated successfully, but these errors were encountered:
Currently it's possible to delete items with active references, e.g. a food item that's used in an intake entry. Doing do throws an exception in Entity Framework, shutting down the application without actually deleting the item from the database.
Prevent this: add a graceful way of handling the situation:
The text was updated successfully, but these errors were encountered: