Link to home
Start Free TrialLog in
Avatar of u2envy1
u2envy1

asked on

Null Value for Boolean data type

I have a Bool Data type that I would like to update with a null value to the DB.
I get an error saying null is not of Boolean type.
Im using LINQ to talk to the DB.
What im using

Table.Column = Convert.ToBoolean(DBNull.Value.ToString());
ASKER CERTIFIED SOLUTION
Avatar of BToson
BToson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of u2envy1
u2envy1

ASKER

Yip, perfect. It works.......