Beispiel #1
0
 public void eliminarTerminal(int id)
 {
     using (BDpasajesEntities context = new BDpasajesEntities())
     {
         Terminal terminal = (from q in context.Terminal
                              where q.ter_codigo == id
                              select q).First();
         context.DeleteObject(terminal);
         context.SaveChanges();
     }
 }
Beispiel #2
0
 public void removePasaje(int id)
 {
     using (BDpasajesEntities context = new BDpasajesEntities())
     {
         Pasaje pasaje = (from q in context.Pasaje
                          where q.pas_codigo == id
                          select q).First();
         context.DeleteObject(pasaje);
         context.SaveChanges();
     }
 }
Beispiel #3
0
 public void eliminarUsuario(int id)
 {
     using (BDpasajesEntities context = new BDpasajesEntities())
     {
         Usuario UsuarioAc = (from q in context.Usuario
                              where q.usu_id == id
                              select q).First();
         context.DeleteObject(UsuarioAc);
         context.SaveChanges();
     }
 }
Beispiel #4
0
 public void eliminarAutobus(int id)
 {
     using (BDpasajesEntities context = new BDpasajesEntities())
     {
         Autobus autobus = (from q in context.Autobus
                            where q.aut_codigo == id
                            select q).First();
         context.DeleteObject(autobus);
         context.SaveChanges();
     }
 }