internal void CopyValues(IDataReader source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source);

            _expediente = Format.DataReader.GetString(source, "CODIGO_EXPEDIENTE");
        }
        internal void Update(Charge parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            this.OidCobro = parent.Oid;

            try
            {
                SessionCode = parent.SessionCode;
                CobroREARecord obj = Session().Get <CobroREARecord>(Oid);
                obj.CopyValues(Base.Record);
                Session().Update(obj);
            }
            catch (Exception ex)
            {
                throw new iQPersistentException(iQExceptionHandler.GetAllMessages(ex));
            }

            MarkOld();
        }