static void Main(string[] args) { opretKunde(); SqlTest.Select("select * from kunder"); opretBil(); BilDotCs.Select("select * from bil"); updateBil(); deleteKunde(); Console.ReadKey(); }
private static void updateBil() { string statement = "update kunder set fornavn = 'Mads' where id = 1"; BilDotCs.update(statement); }
private static void opretBil() { string statement = "insert into bil values (" + "1" + ",'" + "Honda" + "','" + "Civic" + "'," + "2008" + "," + "200000" + ",'" + "Diesel" + "'," + "1050" + ")"; BilDotCs.insert(statement); }