IQueryable Where bool - Unable to cast object of type 'System.Boolean' to type 'System.String'

Description

I have a dao method that accepts a boolean, and then i use IQueryable to compare to a property on my domain entity.

So
.Query().Where(x => (x.Active == active)

The error im getting is...
Unable to cast object of type 'System.Boolean' to type 'System.String'

Im using NHibernate 3.0.0.4000

Environment

None

Activity

Show:

Oskar Berggren 
December 13, 2012 at 10:37 PM

Closing, since sode example and exception information is incomplete

Alex Zaytsev 
October 1, 2012 at 7:13 AM

Could you please test this with latest release version of NHibernate (now 3.3.1 GA), and if this does not work, please provide an test case.

Incomplete

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created March 7, 2011 at 9:09 AM
Updated December 13, 2012 at 10:37 PM
Resolved December 13, 2012 at 10:37 PM
Who's Looking?