Пример #1
0
 static void Main(string[] args)
 {
     opretKunde();
     SqlTest.Select("select * from kunder");
     opretBil();
     BilDotCs.Select("select * from bil");
     updateBil();
     deleteKunde();
     Console.ReadKey();
 }
Пример #2
0
        private static void updateBil()
        {
            string statement = "update kunder set fornavn = 'Mads' where id = 1";

            BilDotCs.update(statement);
        }
Пример #3
0
        private static void opretBil()
        {
            string statement = "insert into bil values (" + "1" + ",'" + "Honda" + "','" + "Civic" + "'," + "2008" + "," + "200000" + ",'" + "Diesel" + "'," + "1050" + ")";

            BilDotCs.insert(statement);
        }