Currently I’m using ormlite with Oracle.
Typed result sets work great, but as soon as I use a custom select returning to a dynamic object there are issues accessing properties which are defined as number(*) or those which I would like to convert to nullable type.
For example, if I call PrintDump on a custom query that returned to a dynamic object, I will see
BOX_1099:
{
__type: "ServiceStack.OrmLite.Oracle.OracleValue, ServiceStack.OrmLite.Oracle"
},
instead of the value. Similarly, if I wanted to set a nullable variable to that value it will throw an exception that it can’t convert. Yet, if it was a typed object, the query will convert to the nullable type without issue.
Additionally, if I call ToCsv() on that dynamic, the values are converted correctly.
What I’m in need of doing is displaying the select results to the console, which is what I wanted to use PrintDump since it formats things nice.