Esempio n. 1
0
 public Afiliado getAfiliado()
 {
     SqlRunner runner = new SqlRunner(Properties.Settings.Default.GD2C2013ConnectionString);
     var result = runner
             .Single("SELECT * FROM SIGKILL.afiliado WHERE afil_usuario={0}",this.usr_id.ToString());
     return new Adapter().Transform<Afiliado>(result);
 }
Esempio n. 2
0
 public Profesional getProfesional()
 {
     SqlRunner runner = new SqlRunner(Properties.Settings.Default.GD2C2013ConnectionString);
     var result = runner
             .Single("SELECT * FROM SIGKILL.profesional WHERE pro_usuario={0}", this.usr_id.ToString());
     return new Adapter().Transform<Profesional>(result);
 }