public void Update(int IdRelacion, int IdPersona, int IdFactorRiesgo, DateTime?FechaHora, string Observacion, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprRelPersonaFactorRiesgoInicial item = new AprRelPersonaFactorRiesgoInicial();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdRelacion = IdRelacion;

            item.IdPersona = IdPersona;

            item.IdFactorRiesgo = IdFactorRiesgo;

            item.FechaHora = FechaHora;

            item.Observacion = Observacion;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
 public bool Destroy(object IdRelacion)
 {
     return(AprRelPersonaFactorRiesgoInicial.Destroy(IdRelacion) == 1);
 }