Is there a way to pass a custom type from C# to Oracle using System.Data.OracleClient?
Posted
by Frankie Simon
on Stack Overflow
See other posts from Stack Overflow
or by Frankie Simon
Published on 2010-05-23T12:37:13Z
Indexed on
2010/05/23
12:40 UTC
Read the original article
Hit count: 368
I was searching online for a solution to passing a string array to a stored procedure in Oracle. The "easy" but messy way was using a comma delimited string.
I had found a sample based on which I created my own type of TABLE of VARCHAR2(200).
I understood that I could use a constructor created "behind-the-scenes" by Oracle to give a list of values that would, in the PL/SQL, be treated as a TABLE I could iterate through.
But when I got to the C# I saw that there is no way for me to create an OracleParameter object that would allow me to use this implicit constructor.
All the samples I'm finding online for now are dealing with Oracle Data Adapter, none say anything about System.Data.OracleClient.
Is there a way to achieve this?
© Stack Overflow or respective owner