public void CopyValues(IDataReader source) { if (source == null) { return; } _record.CopyValues(source); _apellidos = Format.DataReader.GetString(source, "APELLIDOS"); _nombre = Format.DataReader.GetString(source, "NOMBRE"); _promocion = Format.DataReader.GetString(source, "PROMOCION"); _dni = Format.DataReader.GetString(source, "DNI"); }
internal void Update(Promocion parent) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } OidPromocion = parent.Oid; try { ValidationRules.CheckRules(); if (!IsValid) { throw new iQValidationException(moleQule.Library.Resources.Messages.GENERIC_VALIDATION_ERROR); } AlumnoPromocionRecord obj = parent.Session().Get <AlumnoPromocionRecord>(Oid); obj.CopyValues(this.Base.Record); parent.Session().Update(obj); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } MarkOld(); }