Ian wrote:
Hi,
I understand that an entity keeps track of which fields have changed their value. But does an entity instance retain the original values like a DataRow deos?
Cheers, I.
No. You can however make sure the originals are saved, by calling entity.SaveFields(name). This will preserve the fields under the name 'name' and you can rollback later.
Every field contains a DbValue property which contains the value when it was read from the db (if fetched) or null if the entity wasn't fetched.