I pretty much gave up on that topic for the moment: the typical work 
problem. you spent too much time on one topic, others start to pile up :-)

Don't know when I'll give it another try but thanks for helping!



Am Donnerstag, 25. Juni 2015 23:41:03 UTC+2 schrieb Oskar Berggren:
>
>
>
> 2015-06-25 11:58 GMT+01:00 PeSo <[email protected] <javascript:>>:
>
>> session.Query<T>().Where(somecondition).BitOrAggregate(x => x.Rights);
>>
>> I managed to implement the extension method (by studying nhibernates 
> Min/max implementation):
>
>
> Yes, in this case the runtime will simply call the BitOrAggregate() 
> method, and as you've discovered that method should typically add  
> something to the expression. I didn't read that carefully enough before. 
> See also MS source for reference: 
> https://github.com/Microsoft/referencesource/blob/master/System.Core/System/Linq/IQueryable.cs
>
>  
>  
>
>>
>> Now it ends up in the expression tree but gave another exception when 
>> parsing the expression. 
>> maybe the where filter is too complex, I think the expression itself is 
>> correct and I am hitting some linq limitations.
>>
>
> Does it work without the where-condition?
>
>
> /Oskar
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to