Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 3
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);
     }
 }
Esempio n. 4
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);
     }
 }