Anton Shepelev
2017-05-31 15:15:58 UTC
Hello all
I suspect that a third-party ADO.NET data provider I
am using at work is broken, but I cannot prove it to
their support team.
I have a situation where DbCommand.ExecuteScalar()
returns a box object with a value of a type that is
not a native .NET type, i.e. it is OurOwnDecimal
rather than decimal. I cannot handle this value
without an explicit reference to a third-party as-
sembly that implements it. Whereas I am working on
a generic ADO.NET wrapper, I do not want it to de-
pend on anything outside System.Data and System.Da-
ta.Common.
Does the ADO.NET standard stipulate that DbCommand.
ExecuteScalar() shall return objects that may be
cast or unboxed to native .NET types?
I suspect that a third-party ADO.NET data provider I
am using at work is broken, but I cannot prove it to
their support team.
I have a situation where DbCommand.ExecuteScalar()
returns a box object with a value of a type that is
not a native .NET type, i.e. it is OurOwnDecimal
rather than decimal. I cannot handle this value
without an explicit reference to a third-party as-
sembly that implements it. Whereas I am working on
a generic ADO.NET wrapper, I do not want it to de-
pend on anything outside System.Data and System.Da-
ta.Common.
Does the ADO.NET standard stipulate that DbCommand.
ExecuteScalar() shall return objects that may be
cast or unboxed to native .NET types?
--
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]