MCUnderground
✅ EFCore issues when removing an entity,
Hello, so currently im having a bit of issues, im using InMemoryDB.
So i have this setup where i have an Item(dynamic data) which user can change, and ItemData(static data). ItemData belongs to some ItemCollection(there are multiple item collections).
Now when i combine 2 items, i remove them and create next level which i get from ItemCollection.Items, basically next index from current ItemData.
Issue araises that when i combine 2 lvl 1 items everything goes smoothly, but second merge, somehow ItemData.Collection only has 2 items, like lvl 1 item got deleted, but then i created myself debug endpoint to check item collection, and it had 1st item too, so something somewhere is wrong, and i cant wrap my head around it, i am always fetching new data when checking item.
How i remove them
Keep in mind, ItemData has not reference to Item as it does not need to have, but Item has navigation to its ItemData, as it is base information about item.
8 replies