Code: Select all
public List GetApplications(long userABCID) {
List result = new List();
try {
using (OracleCommand command = con.CreateCommand()) {
command.CommandType = System.Data.CommandType.StoredProcedure;
command.CommandText = "REPORT.ApplicationPermission.GetApplicationCursor";
// I tried getting just the Application name this way, too:
//command.CommandText = "REPORT.ApplicationPermission.ApplicationString";
command.ParameterCheck = true;
command.Prepare();
command.Parameters["iWorkerABCID"].Value = userABCID;
using (OracleDataReader reader = ((OracleCursor)command.Parameters["Result"].OracleValue).GetDataReader()) {
while (reader.Read()) {
result.Add(reader.GetString("AppName").ToLower());
}
}