No, where clauses within the subquery are not supported yet.

On Thu, Nov 6, 2008 at 12:02 PM, Tim Scott <[EMAIL PROTECTED]> wrote:

>
> I see that NH.Linq has been enhanced to allow like:
>
>   from timesheet in session.Linq<Timesheet>()
>   select new { timesheet.Id, EntryCount = timesheet.Entries.Count }
>
> This made me all giddy so tried something like:
>
>   from timesheet in session.Linq<Timesheet>()
>   select new { timesheet.Id, EntryCount = timesheet.Entries.Where(e
> => e.Approved) .Count() }
>
> It gives an error is something like: could not resolve property:
> Entries.Id of: Timesheet
>
> Am I doing it wrong, or is this just not supported yet?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to