示例#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);
        }