internal void Update(Alumno_Examen parent, ISession sesion) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } OidAlumnoExamen = parent.Oid; try { ValidationRules.CheckRules(); if (!IsValid) { throw new iQValidationException(moleQule.Library.Resources.Messages.GENERIC_VALIDATION_ERROR); } Respuesta_Alumno_ExamenRecord obj = sesion.Get <Respuesta_Alumno_ExamenRecord>(Oid); obj.CopyValues(this.Base.Record); sesion.Update(obj); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } MarkOld(); }
public virtual void CopyValues(Respuesta_Alumno_ExamenRecord source) { if (source == null) { return; } Oid = source.Oid; _oid_alumno_examen = source.OidAlumnoExamen; _oid_pregunta_examen = source.OidPreguntaExamen; _opcion = source.Opcion; _orden = source.Orden; _correcta = source.Correcta; _calificacion = source.Calificacion; }