Anyone? Is this a bug with the current linq library? any workarounds (ideally without having to resort to ICriteria)?
Thanks 2009/3/17 James Crowley <[email protected]> > Hey everyone, > > Is it possible to perform "deep" where clauses using the current > NHibernate.Linq provider? > > I've got a query like this: > > (from t in _session.Linq<Content>() > where t.WorkflowStage.TransitionsFromHere.Any() > select t) > > but I get > > > NHibernate.QueryException: could not resolve property: > WorkflowStage.TransitionsFromHere of: > DeveloperFusion.Domain.Entities.WorkflowStage > > If I change the query to only one depth, like this: > > (from t in _session.Linq<Content>() > where t.WorkflowStage.Active > select t) > > then it works fine. > > Any ideas? > > Thanks > > James > > -- James Crowley Managing Director Developer Fusion - Connecting developers worldwide Developer Fusion Ltd | 58 Sandringham Close | Enfield, EN1 3JH mob: 07986 624128 web: http://www.developerfusion.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
