Ejemplo n.º 1
0
 public int UpdateDataTableUsingTrans(DataTable table, MySqlCommand cmd)
 {
     if (tran == null)
     {
         if (conn.State != ConnectionState.Open)
         {
             conn.Open();
         }
         tran = Conn.BeginTransaction();
     }
     return(MySqlTool.UpdateDataTableUsingTrans(table, tran, cmd));
 }
Ejemplo n.º 2
0
 public int ExecuteSqlUsingTrans(string sqlstr, params object[] commandParameters)
 {
     if (tran == null)
     {
         if (conn.State != ConnectionState.Open)
         {
             conn.Open();
         }
         tran = Conn.BeginTransaction();
     }
     return(MySqlTool.ExecuteSqlUsingTrans(sqlstr, tran, commandParameters));
 }