Different C# types are allowed to map to different OracleDbType
s; a good listing is shown in an answer to this question.
It turns out there is no OracleDbType.UInt64
, though I can not explain why. Anyway, my problem can be solved by converting the argument to a decimal
type before inserting:
command.Parameters.Add("SampleColumn", (decimal)(valueToInsert));
This allows it to become OracleDbType.Decimal
, which any ulong
number is convertible to.