/// <summary> /// 执行SQL语句 /// </summary> /// <param name="conn">OracleConnection</param> /// <param name="sql">SQL语句</param> /// <returns></returns> public int ExecuteSQL(OracleConnection conn, string sql) { try { return(OracleDataProvider.ExecuteSQL(conn, sql, null)); } catch (Exception e) { throw new Exception(e.Message, e); } }
/// <summary> /// 执行SQL语句 /// </summary> /// <param name="conn">OracleConnection</param> /// <param name="sql">SQL语句</param> /// <param name="pageparm">数参</param> /// <returns></returns> public int ExecuteSQL(OracleConnection conn, string sql, OracleParameter[] pageparm) { try { return(OracleDataProvider.ExecuteSQL(conn, sql, pageparm)); } catch (Exception e) { throw new Exception(e.Message, e); } }