Nico
EF Core: Keep Copy of Entity with old state when updating
Hello, I am trying to update an entity and keep its previous state as a copy disconnected from the databaseContext. After the update I want to use the copy and the updated object for comparisons. I already tried all sorts of things but couldn't find a working solution so far. I would love to have a generic solution for this problem. Sadly, serializing the object that is to be updated before the update didn't work with JsonConverter and BinaryFormatter.
14 replies