public void eliminarVehiculoParking(clsBD oBD) { string cadenaSQL; cadenaSQL = string.Format("delete from Parking where id={0}", this.id); oBD.executeNONQUERY(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); }