ADO.Net parameters are scalar meaning a single value, date, int, string, bit, blog, etc. you cannot output a results set (array, table) to a parameter. as a work around you could have a sql statement execute the proc and select the results of the output. it would look something like this... (i have not exposure to oracle, so the syntax could be way off, but you'll get the idea).
Code:
var records = new DataTable();
using(var command = connection.CreateCommand())
{
command.CommandText = @"declare @table as tableresult
exec stored_proc output @table
select * from @table";
record.Load(command.ExecuteReader());
}
return records;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.