public int UpdateDataTableUsingTrans(DataTable table, OdbcCommand cmd) { if (tran == null) { if (conn.State != ConnectionState.Open) { conn.Open(); } tran = Conn.BeginTransaction(); } return(OdbcTool.UpdateDataTableUsingTrans(table, tran, cmd)); }
public int ExecuteSqlUsingTrans(string sqlstr, params object[] commandParameters) { if (tran == null) { if (conn.State != ConnectionState.Open) { conn.Open(); } tran = Conn.BeginTransaction(); } return(OdbcTool.ExecuteSqlUsingTrans(sqlstr, tran, commandParameters)); }