开发者

nHibernate , Linq Operand Exception

开发者 https://www.devze.com 2023-03-20 07:43 出处:网络
I m getting the error \'Operator \'=\' incompatible with operand types \'Boolean\' and \'String\'\' when i m trying to filtering the data 开发者_StackOverflow社区in the grid with datetime column. i m

I m getting the error 'Operator '=' incompatible with operand types 'Boolean' and 'String'' when i m trying to filtering the data 开发者_StackOverflow社区in the grid with datetime column. i m using jqgrid and fluent nhibernate.

                return session.Query<User>().Where(filterExpression).Count();

on the above code i m getting the exception for search according to date time and for bool tpye also.

Does anyone knows what is the issue ?

Thanks


Can you tell us more about filterExpression? What you have so far looks correct, but expression trees are easy to get wrong.

0

精彩评论

暂无评论...
验证码 换一张
取 消