SqlInt32

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I have now been able to populate a variable of this type by performing
'GetSqlInt32()' from an SqlDataReader. Although I have to check for
NULL before doing this.

Now I want to perform straight assignment into a field of a DataSet
that is of type Int32 as well. And I am having to check for NULL
before doing this.

This is rediculous. Is there no Client-Side data type that can bear
holding a NULL value so that I can exchange information between a
dataset and a datareader without checking for NULL?

Thanks,
Brian
 
Brian said:
I have now been able to populate a variable of this type by performing
'GetSqlInt32()' from an SqlDataReader. Although I have to check for
NULL before doing this.

Now I want to perform straight assignment into a field of a DataSet
that is of type Int32 as well. And I am having to check for NULL
before doing this.

This is rediculous. Is there no Client-Side data type that can bear
holding a NULL value so that I can exchange information between a
dataset and a datareader without checking for NULL?

Thanks,
Brian

Brian,

These people feel your pain:

http://nullabletypes.sourceforge.net/

Erik
 
Back
Top