示例#1
0
文件: OdbcTool.cs 项目: zanderphh/dcm
 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));
 }
示例#2
0
文件: OdbcTool.cs 项目: zanderphh/dcm
 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));
 }