Hi Rene,
This has been discussed here several times, so you can check the archives
for more info.
basically you have two options:
1- Use a wrapper type
2- Use a special value of the type as a null indicator, for exampe I use
DateTime.MinValue to indicate a datetime with no value set in one
application, of course I do so cause that value has no meaning on the
application, if not I cannot use this approach.
Also note that in .NET 2.0 this will change.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Rene" <no****@nospam.nospam> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
I have my object model thing going with some classes that contain
properties that are saved into a database. Some of these properties are *numeric*
properties that can be left Null in the database table.
My problem is that there does not seem to be a way to assign a Null value
to your typical numeric value type variable.
Other than using the sql variables types (which cant' be serialized), can
anyone share some practical solutions on how to go around this limitation?
In other words, how do you guys deal with numeric properties that can be
Null.
Thank you.