Beispiel #1
0
 public void Modify(EntidadMateria entidad)
 {
     sql = "Update materia Set "
           + "nombre ='" + entidad.Nombre + "',"
           + "id_profesor =" + entidad.Id_profesor
           + " where "
           + "id_materia = " + entidad.Id_materia;
     mod.ExecuteSQL(sql);
 }
Beispiel #2
0
 public void Insert(EntidadMateria entidad)
 {
     sql = "Insert into materia ("
           + "id_materia,"
           + "nombre,"
           + "id_profesor"
           + ") values ("
           + entidad.Id_materia + ","
           + "'" + entidad.Nombre + "',"
           + entidad.Id_profesor
           + ")";
     mod.ExecuteSQL(sql);
 }