Example #1
0
 public bool novo(Termo ter)
 {
     sql = "INSERT INTO termo(ter_quemcadastrou) "
     +"VALUES (@1)";
     sql = sql.Replace("@1", ter.TerQuemCadastrou);
     bco.conecta();
     result = bco.executeNonQuery(sql);
     bco.desconecta();
     if (result)
     {
         Aluno alu = new Aluno();
         alu.Id = Convert.ToInt32(ter.AluId);
         alu.TerId = ter.getUltimoId();
         result = alu.addTermo();
     }
     return result;
 }