0

我换出了引用,但我收到一个错误,它不能将 System.Oracle 转换为 Oracle.ManagedDataAccess

public static DataSet ExecuteDataSetWithTimeOut(string spName, object[] parameterValues)
{
    OracleCommand cmd = new OracleCommand(); 

    cmd.CommandTimeout = 7200;
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.CommandText = spName;
    cmd.Parameters.Add("o_msg", OracleDbType.Varchar2, 300).Direction = ParameterDirection.Output;
    cmd.Parameters.Add("o_shipper_inv", OracleDbType.RefCursor).Direction = ParameterDirection.Output;
    cmd.Parameters.Add("i_start_dt", OracleDbType.Date).Value = parameterValues[2].ToString();
    cmd.Parameters.Add("i_end_dt", OracleDbType.Date).Value = parameterValues[3].ToString();
    cmd.Parameters.Add("i_user_id", OracleDbType.Varchar2).Value = parameterValues[4].ToString();
    cmd.Parameters.Add("i_facility_cd", OracleDbType.Varchar2).Value = null;
    cmd.Parameters.Add("i_shipper_cd", OracleDbType.Varchar2).Value = null;
    return Db.ExecuteDataSet(cmd);
}
4

0 回答 0