Here instead of SqlHelper I need to execute it through Oracle. Is there anything like OracleHelper for C#? If so how can I use it here
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;
}
}
Any suggestion?
I would recommend downloading and installing ODP.Net. I would also recommend studying the code samples they have here, which should get you going.