Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
File: Program.cs Progetto: 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();
        }