Home  /  Questions  /  Question

50   0
Sep 21, 2015

Working with SQL bit values?


I am trying to write to a table that includes a bit column.  When trying to the initialise the domain object with defaults I am getting the following error:

"Object of type 'System.Int32' cannot be converted to type 'System.Boolean'."

I am missing some sort of mapping between System.Boolean and SQL bit data types?

50   0
Sep 25, 2015
This was caused from having a default value set on the table column. All working fine now.