In my database, I have a few columns in one of my tables that are bit (boolean) values. They are allowed to be NULL since the fields are not always going to contain data.
I've gone through the process of creating an XSD DataSet using the table and made sure that the AllowDBNull field is set to True.
However, when I pull a down record from the database into the datatable using the configured GetData method, I run into the following error:
[InvalidCastException: Conversion from type 'DBNull' to type 'Boolean' is not valid.]
Do I need to specify something other than in the DefaultValue field for the column, or is there some other field to set?
I am in the development phase still with this project, so if changing the fields to a char and using a Y/N/NULL option is preferred, I'm not too adverse to going that way.