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