Dofactory.com
Dofactory.com
 Back to list
Views:   5.8K
Replies:  1
Archived

Working with SQL bit values?

Hi,

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?
Mark Erasmus, Sep 21, 2015
Reply 1
This was caused from having a default value set on the table column. All working fine now.
Mark Erasmus, Sep 25, 2015
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.