A
ahaupt
Hi,
I have a DOC, which represents a supplier.
Most of the class members are protected and I use public accessors to
access the class members.
One slight issue I have is that the values in my DB must sometime be
null. At the momenet my DOC represent the value as a value type.
Lets say I have a ContactID in my Supplier DataTable, which can either
be null or an ID of a contact in the contact table. At the moment my
DOC's class member is of type int, which can't be null.
How do you guys handle this scenario?
I suppose I could change all the relevant members to type "object", but
then I would have to cast/convert all those members each time I use
them at on the client.
Best,
Andre
I have a DOC, which represents a supplier.
Most of the class members are protected and I use public accessors to
access the class members.
One slight issue I have is that the values in my DB must sometime be
null. At the momenet my DOC represent the value as a value type.
Lets say I have a ContactID in my Supplier DataTable, which can either
be null or an ID of a contact in the contact table. At the moment my
DOC's class member is of type int, which can't be null.
How do you guys handle this scenario?
I suppose I could change all the relevant members to type "object", but
then I would have to cast/convert all those members each time I use
them at on the client.
Best,
Andre