Пример #1
0
        public void eliminarVehiculoParking(clsBD oBD)
        {
            string cadenaSQL;

            cadenaSQL = string.Format("delete from Parking where id={0}", this.id);
            oBD.executeNONQUERY(cadenaSQL);
        }
Пример #2
0
        public System.Data.DataSet leerModelos(clsBD oBD)
        {
            string cadenaSQL;

            cadenaSQL = string.Format("select * from Modelo where idMarca={0}", this.idMarca);
            return(oBD.executeSELECT(cadenaSQL));
        }
Пример #3
0
        public System.Data.DataSet leerCochesParking(clsBD oBD)
        {
            string cadenaSQL;

            cadenaSQL = string.Format("select * from Parking");
            return(oBD.executeSELECT(cadenaSQL));
        }
Пример #4
0
        public System.Data.DataSet leerMarcas(clsBD oBD)
        {
            string cadenaSQL;

            cadenaSQL = "select * from Marca";
            return(oBD.executeSELECT(cadenaSQL));
        }
Пример #5
0
        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);
        }