Пример #1
0
        public void EngadirAluguer(clsBD oBaseDatos)
        {
            string cadenaSQL = String.Format(@"insert into Aluguer(IdVehiculo,Apenom,DataAluguer,NDias) values 
                                             ({0},'{1}','{2}',{3})", this.IdVehiculo, this.ApeNom, this.DataAluguer, this.NDias);

            oBaseDatos.operacionsNonSelect(cadenaSQL);
        }
Пример #2
0
        public void colocarMarcaAlugado(clsBD oBaseDatos)
        {
            string cadenaSQL = string.Format("Update vehiculos set Alugado='{0}' where IdVehiculo={1}", this.Alugado, this.IdVehiculo);

            oBaseDatos.operacionsNonSelect(cadenaSQL);
        }
Пример #3
0
        public void BorrarAluguer(clsBD oBaseDatos)
        {
            string cadenaSQL = String.Format("delete from aluguer where IdAluguer={0}", this.IdAluguer);

            oBaseDatos.operacionsNonSelect(cadenaSQL);
        }