Added clearing properties changes after insert or update of entity