3

from my .NET application I have to invoke an Oracle pipelined table function. Do I need to map the Oracle UDTs (object and table) and to add a parameter for the table object to the ADO.NET Command object, or should I use a Data Reader?

I know that I have to map the Oracle UDTs to .NET classes when I want to pass a table to Oracle procedure. Can I use the same method to invoke a pipelined function? Or should I specify in my ADO.NET Command the Text "SELECT * FROM TABLE(myFunction(...))" and use a Data Reader for every row?

Thanx in advance!

1 Answer 1

0

The easiest will be to use SELECT * FROM ..., however the SQL that would work in all versions of Oracle maybe like this:

SELECT * FROM TABLE(CAST(myFunction(...) AS functionReturnType))

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.