NHibernate 3.1 migration problem with Linq
问题 I am facing a issue regarding the migration from NHibernate 2.1.2 + Fluent 1.0 to NHibernate 3.1 + Fluent 1.2 : Used to work : List<Order> orders = session.Linq<Order>() .Where(o => o.OrderLines.Any(ol => printStatuses.Contains(ol.PrintStatus))) .ToList(); Don't work anymore List<Order> orders = session.Query<Order>() .Where(o => o.OrderLines.Any(ol => printStatuses.Contains(ol.PrintStatus))) .ToList(); We get the following error : "Could not load type o.OrderLines . Possible cause: the