예제 #1
0
        //删除博客
        static void Delete()
        {
            Console.WriteLine("请输入ID");
            int id = int.Parse(Console.ReadLine());
            BlogBusinessLayer bbl = new BlogBusinessLayer();
            Blog blog             = bbl.Query(id);

            bbl.Delete(blog);
        }
예제 #2
0
        //删除
        static void Delete()
        {
            Console.WriteLine("请输入ID");
            int id = int.Parse(Console.ReadLine());
            BlogBusinessLayer bbl          = new BlogBusinessLayer();
            StudentClass      studentClass = bbl.Query(id);

            bbl.Delete(studentClass);
        }
예제 #3
0
파일: Program.cs 프로젝트: HCJ98/End
        //删除博客
        static void Delete()
        {
            QueryBlog();
            BlogBusinessLayer bbl = new BlogBusinessLayer();

            Console.WriteLine("请输入需要删除到博客id");
            int  id   = int.Parse(Console.ReadLine());
            Blog blog = bbl.Query(id);

            bbl.Delete(blog);
            Console.Clear();
            selectBlog();
        }