Unfortunately no, an expression tree can't contain an expression that compares an Nullable<T> to null (value type vs. reference type).
Stefan ________________________________ From: [email protected] [[email protected]] on behalf of Patrick Earl [[email protected]] Sent: Tuesday, December 07, 2010 16:11 To: [email protected] Subject: Re: [nhibernate-development] Fwd: NHibernate 3 GA, Linq and VB.NET Could not HasValue be transformed to !=null by ReLinq? Patrick Earl On Tue, Dec 7, 2010 at 7:39 AM, Wenig, Stefan <[email protected]<mailto:[email protected]>> wrote: James has posted on nhusers, I took it here. If he tries, it should resolve the problems with VB-specific string comparisons. Null handling needs to be supported by code in NH.
