Take a look at SqlCommandBuilder.DeriveParameters(). (It also works in the latest Oracle drivers)
It will load the parameters from the stored procedure into the property of .Parametersyour DbCommand object, and you can foreach()skip them to get names, types and directions ...
Hope you were looking ...
source
share