I've got a int column mapped as Boolean type in domain objects. Everything was looking good until today where we noticed when doing a QueryOver on the bool property the actual SQL generated is not to the liking of SqlServer.
The queryOver looks like below:
.Where(Restrictions.On<OrderLine>(ol => _orderLineAlias.Approved).IsLike(true));
And the SQL for that is,
select * from Orderline where Approved like 'true'
Hope you can see the problem here, as the column's data type is int, this wont return me anything. Changing the DB data type or that of the Entity class is not an option.
IsLikewith an int??? There is only a like for strings.