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
Since the categories are called with AsNoTracking, they seem to be treated as new items when saving the transaction.
Before any of this, look if there is a setting for CodeFirst that controls the creation of sub objects
As a precondition, maybe add unique indexes to the appropiate tables - code can be found in VirtualGabbai
First try and see if just removing the AsNoTracking is enough
- This entails updaing the update methods as well
- The tests should be able to catch any regressions in this area
If that does work, before saving the item, pull the categories from the database and set the properties to be equal to the object that is returned
Last ditch scenario is too revert to having seperate sets of objects.
- Although I am not so sure that this will actually help.
I am not sure what layer the code that causes the bug is on...
[EDIT]
See below as the issue is caused when entering a new transaction
The text was updated successfully, but these errors were encountered: