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); }
public void colocarMarcaAlugado(clsBD oBaseDatos) { string cadenaSQL = string.Format("Update vehiculos set Alugado='{0}' where IdVehiculo={1}", this.Alugado, this.IdVehiculo); oBaseDatos.operacionsNonSelect(cadenaSQL); }
public void BorrarAluguer(clsBD oBaseDatos) { string cadenaSQL = String.Format("delete from aluguer where IdAluguer={0}", this.IdAluguer); oBaseDatos.operacionsNonSelect(cadenaSQL); }