Exemple #1
0
        public static void  Job2()
        {
            TestBLL _TestBLL = new TestBLL();

            _TestBLL.Add(new TestClass
            {
                Id      = 1,
                Title   = "测试",
                Content = "测试服务",
                CDate   = DateTime.Now
            });
        }
Exemple #2
0
 public static Task Job()
 {
     return(Task.Run(() =>
     {
         TestBLL _TestBLL = new TestBLL();
         _TestBLL.Add(new TestClass
         {
             Id = 1,
             Title = "测试",
             Content = "测试服务",
             CDate = DateTime.Now
         });
     }));
 }