static void Delete() { ClassBusinessLayer cbl = new ClassBusinessLayer(); Console.WriteLine("请输入一个班级的id"); int id = int.Parse(Console.ReadLine()); Class classes = cbl.Query(id); cbl.Delete(classes); }
//删除 static void Delete() { ClassBusinessLayer bbl = new ClassBusinessLayer(); Console.Write("请输入删除班级id"); int id = int.Parse(Console.ReadLine()); Clas clas = bbl.Query(id); bbl.Delete(clas); }