/// <summary>
        /// 新增/更新示例
        /// </summary>
        private void add()
        {
            var datas = new List<TDemoModel>();
            datas.Add(new TDemoModel()
            {
                Column1 = Guid.NewGuid().ToString(),
                Column2 = false,
                Column3 = 100,
                Column4 = DateTime.Now
            });
            datas.Add(new TDemoModel()
            {
                Column1 = Guid.NewGuid().ToString(),
                Column2 = false,
                Column3 = 100,
                Column4 = DateTime.Now
            });

            var controller = new TDemoController();
            var result = controller.updateMany(datas);
            if (result.isSuccess)
            {
                //成功
            }
            else
            {
                Console.WriteLine(result.exception.Message);
            }
        }
 /// <summary>
 /// 获取分页数据示例
 /// </summary>
 private void getListData()
 {
     var controller = new TDemoController();
     var result = controller.getListData(new TDemoModel() { 
         pageSize = 20,
         pageNumber = 1,
         sortColumn = "Column1",
         sortDirection = System.ComponentModel.ListSortDirection.Ascending,
         fullTextSearch = ""
     });
     if (result.isSuccess)
     {
         demoDataGrid.ItemsSource = result.data;
     }
     else
     {
         Console.WriteLine(result.exception.Message);
     }
 }
 /// <summary>
 /// 删除示例
 /// </summary>
 private void delete()
 {
     var controller = new TDemoController();
     var result = controller.delete(new TDemoModel()
     {
         ID = 1
     });
     if (result.isSuccess)
     {
         //成功
     }
     else
     {
         Console.WriteLine(result.exception.Message);
     }
 }