[Mono-dev] DataColumn.DefaultValue fixes
Atsushi Eno
atsushi at ximian.com
Fri Jun 13 10:32:24 EDT 2008
Hi Kosta,
Thanks for digging it. It sounds interesting, though I'm not sure how
it is significant. INullable is in System.Data.SqlTypes namespace,
so I'd expect that it is mostly for internal use.
The fix I made for SqlXxx type support as null value is rather
to make Sys.Data classes to not premise DBNull than picking every
possible supported types.
Of course, changing relevant to support INullable is better than
now I think.
Atsushi Eno
Konstantin Triger wrote:
> Hello all,
>
> It was strange to me that MS perform a special check for SqlXXX types,
> so I started looking what is common to them. I saw that all of them
> derive from INullable. It looked interesting, so I created my type that
> derived from INullable. When I tried to set it as a DataColumn type, I
> got an exception stating that I must have a static property or field
> named "Null". When I added it, I got its value for DataColumn.DefaultValue.
>
> Regards,
> Kosta
More information about the Mono-devel-list
mailing list