"Adam J. Schaff" <(E-Mail Removed)> schrieb
> One neat trick is to create your own DataReader class that
> implements IDataReader. Yeah, it's some typing to do it once, but
> when you're done you can use the resulting class in all of you
> database access code and never worry about nulls again.
Only a remark:
Disallowing Null values - if possible - in a database is the better
approach. When designing the database, one should wonder whether there is a
reason to distinguish between a Null value and e.g. a zero-length string.
Usually there isn't. If Null values are converted to zero-length strings
anyway, storing Null values does not make sense.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html