We would like to have a method which copies all properties of a given input object to an existing entity framework core object which was loaded from the database and therefore is in attached state.
We have tried Automapper and AnyClone to copy all properties from the input to the database object. The copy itself works fine but when we then store/save the database object Entity Framework creates a new entry instead of updating the existing one.
Is there some kind of hidden property which we should not copy in order to not loose the attachment to the DbContext
?