I'm not using LINQ - Session.Query<T>() does not exist as a method. I cannot find any way how to replicate that functionality using Criteria API or QueryOver. I've tried various ways:
crit1.Add(NHibernate.Criterion.Restrictions.On<Product>(item => item.Features).IsInG(featureList)); *Brings up error **'Cannot use collections with InExpression'* * * *crit1.Add(NHibernate.Criterion.Restrictions.On<Product>(item => item.Features).IsIn(featuresPKeysList));* *Brings up same error - 'Cannot use collections with InExpression'* * * crit1.Add(NHibernate.Criterion.Restrictions.Where<PropertyItem>(item=>item.PropertyItemFeatures.Contains(featureTmp1))); Brings up error - *Unrecognised method call: System.Linq.Enumerable:Boolean Contains* * * *--* * * Any ideas? There doesn't seem to be much help over the internet on assocation/collection restrictions! Thanks, Karl -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/7tinn-0YEaYJ. 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.
