在这里,SqlHelper
我需要通过 Oracle 来执行它。有没有类似OracleHelper
C# 的东西?如果是这样,我该如何在这里使用它
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.OracleClient;
using Microsoft.Practices.EnterpriseLibrary.Data.Oracle;
using Microsoft.ApplicationBlocks.Data;
public DataSet GetAsdDollarsaleschangeList(String requestId,String reportCode )
{
try
{
OracleDatabase db = new OracleDatabase("Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT=***)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME= ***)));User Id= ***;Password= ***;Persist Security Info=True;");
OracleParameter[] _spParams = new OracleParameter[1];
_spParams[0] = new OracleParameter(ReportCode.requestId,requestId);
return SqlHelper.ExecuteDataset(db, CommandType.StoredProcedure, ReportCode.PEP_1, _spParams);
}
catch (Exception err)
{
throw err;
}
}
有什么建议吗?