Пример #1
0
 public void GetEntity()
 {
     using (MysqlExecute helper = new MysqlExecute())
     {
         var entity = new MysqlTestHandler();
         entity.Id.FeildValue = 1;
         var test = helper.SelectEntity <MySqlTestQuery>(entity, "selectById");
         var aa   = 0;
         //helper.Add(entity);
     }
 }
Пример #2
0
 public void GetListByName()
 {
     using (MysqlExecute helper = new MysqlExecute())
     {
         var entity = new MysqlTestHandler();
         entity.Name.FeildValue = "金婧诗";
         List <MySqlTestQuery> test = helper.SelectList <MySqlTestQuery>(entity, "selectByName");
         var aa = 0;
         //helper.Add(entity);
     }
 }
Пример #3
0
 public void TestMysqlSignerAdd()
 {
     using (Invoke helper = new Invoke())
     {
         var entity = new MysqlTestHandler();
         entity.Name.FeildValue = GetName();
         ResponseData result = helper.Add(entity);
         int          newid  = entity.NewId();
         Assert.IsTrue(newid > 0);
     }
 }
Пример #4
0
 public void UpdateTable()
 {
     using (MysqlExecute helper = new MysqlExecute())
     {
         var entity = new MysqlTestHandler();
         entity.Id.FeildValue   = 1;
         entity.Name.FeildValue = "ADMIN";
         helper.Update(entity);
         //var test = helper.SelectEntity<MySqlTestQuery>(entity, "selectNameById");
         var aa = 0;
         //helper.Add(entity);
     }
 }
Пример #5
0
 public void GetAllPage()
 {
     using (MysqlExecute helper = new MysqlExecute())
     {
         int       start  = 0;
         int       size   = 5;
         var       entity = new MysqlTestHandler();
         KdtPageEx page   = new KdtPageEx()
         {
             selpage      = "selectPage",
             selpagetotal = "selectPageCount",
             start        = start,
             end          = start + size
         };
         var test = helper.SelectPage <MySqlTestQuery>(entity, page);
         var aa   = 0;
         //helper.Add(entity);
     }
 }