Back to list
Views:   5.8K
Replies:  1

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?
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     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0