We're updating the issue view to help you get more done. 

Comparing a double constant with an integer property does not work with Query (LINQ) syntax

Description

The following query does not work:

double myValue = 1.5;
Session.Query<Foo>().Where(x => x.IntProp < myValue*x.AnotherIntProp).ToList();

NHibernate seems to make some attempt to handle the double but fails, using an integer data type instead.

Environment

None

Status

Assignee

Alexander Zaytsev

Reporter

CBP

Labels

Components

Affects versions

3.4.0.GA

Priority

Minor