示例#1
0
文件: Program.cs 项目: pickJasmin/MVC
        static void Delete()
        {
            ClassBusinessLayer cbl = new ClassBusinessLayer();

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

            cbl.Delete(classes);
        }
示例#2
0
文件: Program.cs 项目: wangsr2/WEBVS
        //删除
        static void Delete()
        {
            ClassBusinessLayer bbl = new ClassBusinessLayer();

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

            bbl.Delete(clas);
        }