I have two entities of the same type, ClientEntity.
I want to copy the contents between them, retaining the key on the destination.
This how I am doing this:
int destinationKey = clientDestination.ID;
clientDestination.Fields = clientSource.Fields;
clientDestination.ID = destinationKey;
It appears to work - can anyone see any problems with this?
I don't use clientSource from this point onwards - I would imagine altering any fields on clientSource would alter them on the destination also (as they are pointing to the same Fields collection).
Andrew