This was my attempt:
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("i_num_array_price_list", OracleDbType.Decimal, myItems.Select(c => c.Price).ToArray(), ParameterDirection.Input);
In oracle, the type is declared as:
i_num_array_price_list IN num_array,
and that is defined as:
TYPE Num_Array IS VARRAY(10) OF NUMBER;
I've tried it as OracleDbType decimal and array, neither worked. Decimal produces this error:
Unable to cast object of type 'System.Decimal[]' to type 'System.IConvertible'.
Any idea how I can get it to accept my array of decimal values?