AleMonteiro is correct, it should be CommandType.Text
. You need to modify your CommandStr
variable to be valid SQL. Something like string CommandStr = "SELECT F_Get_Desc(@PDesc)";
and then you reference the parameter as @PDesc
like so:
OracleParameter pDesc = new OracleParameter("@PDesc", OracleDbType.Varchar2,128);