Bug still not fixed in Version 2.2 Rev 705!
Example:
OrderEntity order = new OrderEntity();
order.CancelChanges();
EntityState
state = order.EntityState;
=> Exception !
_originalData is null => entityData becomes null forever!
Current code:
///<summary>
/// Revert all changes and restore original values.
///</summary>public override void CancelChanges()
{
IEditableObject obj = (IEditableObject) this;
obj.CancelEdit();
this.entityData = null;
if (this._originalData != null)
{
this.entityData = this._originalData.Clone() as EventsEntityData;
}
}