public void eliminarVehiculoParking(clsBD oBD) { string cadenaSQL; cadenaSQL = string.Format("delete from Parking where id={0}", this.id); oBD.executeNONQUERY(cadenaSQL); }
public System.Data.DataSet leerModelos(clsBD oBD) { string cadenaSQL; cadenaSQL = string.Format("select * from Modelo where idMarca={0}", this.idMarca); return(oBD.executeSELECT(cadenaSQL)); }
public System.Data.DataSet leerCochesParking(clsBD oBD) { string cadenaSQL; cadenaSQL = string.Format("select * from Parking"); return(oBD.executeSELECT(cadenaSQL)); }
public System.Data.DataSet leerMarcas(clsBD oBD) { string cadenaSQL; cadenaSQL = "select * from Marca"; return(oBD.executeSELECT(cadenaSQL)); }
public void gardarVehiculoParking(clsBD oBD) { string cadenaSQL; cadenaSQL = string.Format(@"insert into Parking(matricula,idMarca,idModelo) values ('{0}',{1},{2})", this.matricula, this.idMarca, this.idModelo); oBD.executeNONQUERY(cadenaSQL); }