LINQ Pitfalls: Using external variables in projections

added by notherdev
11/14/2011 1:57:20 PM

0 Kicks, 81 Views

One issue with NHibernate.Linq provider that surprised me a lot is about variables (or constants) that appear in Select expressions. It seems that you can use it, but once only! Otherwise you'll experience pretty nasty silent fail.


2 comments

dpeterson
11/15/2011 11:18:24 AM
This seems to be specific to NHibernate.LINQ, not LINQ.

notherdev
11/15/2011 12:43:20 PM