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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top