I'm trying to pass a table into package as input parameter. I generated code for package and the last thing to do is pass the instance of parameter to it.
Code: Select all
var tableType = OracleType.GetObjectType("schema_name", "table_type", conn);
OracleTable table = new OracleTable(tableType);
that's how I defined my types in oracle. They are in the same schema, where the package is.
Code: Select all
CREATE OR REPLACE TYPE schema_name.record_type iS object
(
effective_date DATE,
snap_time VARCHAR2(10),
id NUMBER,
tid number,
tiid NUMBER,
ov NUMBER,
oc NUMBER,
tc NUMBER,
tv NUMBER
);
CREATE OR REPLACE TYPE schema_name.table_type is table of schema_name.record_type ;
Code: Select all
var tableType = OracleType.GetObjectType("schema_name", "table_type", conn);
Please, help me figure out how to make this work.
Devart.Data.Oracle version 9.5.454.0, oracle 11g