Hi,

I have made this answer days ago, but no one answered... Here I go
again. I can't run this query:

var lll = (from l in session.Linq<SomeClass>()
                                                   where l.Children.Count > 0
                                                   select l).ToList();

If I use Any, it works:

var lll = (from l in session.Linq<SomeClass>()
                                                   where l.Children.Any() == 
true
                                                   select l).ToList();

My mappings are correct, they are quite simple and I can do all
operations perfectly. I basically have an Id, a Parent and a Children
properties, I am mapping a parent-child relationship.

The exception I get is:

QueryException: could not resolve property: Children.Id of:SomeClass

Any ideas? Where can I get more support for LINQ to NHibernate?

Thanks,

Ricardo Peres
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to