Example #1
0
 private void LeerDescripcion()
 {
     BibliotecaNegocio.Sexo RegSex = new BibliotecaNegocio.Sexo();
     RegSex.IdSexo = this.IdSexo;
     if (RegSex.Read())
     {
         BibliotecaNegocio.Sexo Sex = new BibliotecaNegocio.Sexo();
         Sex.IdSexo      = RegSex.IdSexo;
         Sex.Descripcion = RegSex.Descripcion;
         this.Sexo       = Sex;
     }
     BibliotecaNegocio.EstadoCivil RegEst = new BibliotecaNegocio.EstadoCivil();
     RegEst.IdEstadoCivil = this.IdEstadoCivil;
     if (RegEst.Read())
     {
         BibliotecaNegocio.EstadoCivil Est = new BibliotecaNegocio.EstadoCivil();
         Est.IdEstadoCivil = RegEst.IdEstadoCivil;
         Est.Descripcion   = RegEst.Descripcion;
         this.EstadoCivil  = Est;
     }
 }