Asimov wrote:
But if I add dstinct code to save stuff in my History table before each genuine Save call to an entity, why would I need to play around with the IsDirty/IsNew flags and what do you mean by the SourceObjectName?
heh, I think we have a misunderstanding going on
. What I thought was: you have this entity, say myCustomer, and you want that to be saved in the CustomerHistory table as well. So instead of creating a new entity, copying all fields, I simply altered the original entity a bit and make it save in the CustomerHistory table.
Which is one way to do it of course, another is to just create a history entity, copy the values over and save that one (which is probably a better way to do it anyway, as you can add more fields to the history entity as well, like date of save, who made the change etc.)