Exemple #1
0
        static void Delete()
        {
            ClassBusinessLayer cbl = new ClassBusinessLayer();

            Console.WriteLine("请输入一个班级的id");
            int   id      = int.Parse(Console.ReadLine());
            Class classes = cbl.Query(id);

            cbl.Delete(classes);
        }
Exemple #2
0
        //删除
        static void Delete()
        {
            ClassBusinessLayer bbl = new ClassBusinessLayer();

            Console.Write("请输入删除班级id");
            int  id   = int.Parse(Console.ReadLine());
            Clas clas = bbl.Query(id);

            bbl.Delete(clas);
        }