I have a boolean type defined in my xml. In the database it is a Bit type size of 1. Whenever I ask for an object back from the db it bombs with somesort of casting issue.
"String was not recognized as a valid Boolean"
This is how its defined in my Company class xml:
Code:
<property name="activeCompany" column="ACTIVE" type="Boolean" />
This is it in my Company class
Code:
public bool activeCompany
{
get { return this._activeCompany; }
set { _activeCompany = value; }
}
The error in my log is
Code:
String was not recognized as a valid Boolean.
Thanks for your input
Sean