private void FixupD_ORDER_STATUS(D_ORDER_STATUS previousValue) { if (D_ORDER_STATUS != null) { if (Status != D_ORDER_STATUS.ID) { Status = D_ORDER_STATUS.ID; } } else if (!_settingFK) { Status = null; } }