コード例 #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();
        }