I am working on a small training project which directed me to create an Oracle UDT that contains an associative array.
The array is defined as follows:
create or replace TYPE TRNG_AUTHORS_TAB AS
TABLE OF VARCHAR2(50) ;
The UDT then uses this as follows:
create or replace TYPE TRNG_BOOK_OBJ AUTHID DEFINER
AS OBJECT
(
<SNIP normal variable mappings>
AUTHORS TRNG_AUTHORS_TAB
) NOT FINAL;
Now I am mapping this to a C# class. The TRNG_BOOK_OBJ is mapped as a UDT with an appropriate Factory.
I cannot, however, figure out how to map the associative array as part of the class. I have attempted using a List or string[], but these did not work.
My next thought is to create a C# UDT class for the TRNG_AUTHORS_TAB, which I can then map to the class decorated with the OracleArracyMapping attribute, but I can't figure out how to create the associative array's UDT, given that the string column contained within it has no name to map to.
Can anyone help me resolve this issue, either by giving examples of how to map an associative array to a List or C# array, or how to map the associative array type to a C# UDT class?