HOWTO?: decimal property to supply null

  • Thread starter Thread starter Ringo
  • Start date Start date
R

Ringo

I have a class that wraps up data from a database. It's
consumed by a procedure that populates another database.
I thought I'd been pretty clever with the design until I
realised that a null would have to pass to the
destination database and end up as a null. The decimal
property insists on casting "nothing" to zero. I thought
of subtyping the decimal type, which doesn't work because
it's sealed. I thought of changing my property type to a
sqldecimal, but that didn't work. Does anybody have any
ideas?

Thanks R
 
Back
Top