Hi guys! When using trunk build of NHibernate (built from sources), I get the following exception when using
var docs = session.Query<Document>().Fetch(p => Parts).ToList(); Unhandled Exception: System.NotSupportedException: Specified method is not supported. at NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector.GetClassName(IASTNode querySource) in c:\work\NHibernate\nhibernate\src\NHibernate\Hql\Ast\ANTLR \PolymorphicQuerySourceDetector.cs:line 61 Are my dependencies mixed or something? Thanks, Miha. On Mar 16, 2:18 pm, Fabio Maulo <[email protected]> wrote: > extension method > > 2010/3/16 Paco Wensveen <[email protected]> > > > > > It's available: queryable.Fetch(entity => entity.Property) > > > On Tue, Mar 16, 2010 at 9:34 AM, James Crowley <[email protected]> > > wrote: > > > hey guys (and Steve!) - awesome job on the new Linq provider so far. Just > > > wondering whether the eager loading is available yet? Had a dig through > > the > > > latest NhQueryable<T> but didn't look like anything was in there yet? > > > Many thanks, > > > James > > > > On 7 January 2010 20:02, Steve Strong <[email protected]> wrote: > > > >> Back from hols :) > > > >> Plan is to get eager / lazy loading mechanisms available with the new > > >> provider, but they aren't there yet. > > > >> Cheers, > > > >> Steve > > > >> On 5 Jan 2010, at 01:23, Paul Batum wrote: > > > >> > Thanks guys. I'm not hugely familiar with the criteria API so I missed > > >> > that one. > > > >> > I'll try pestering Steve on twitter regarding his plans for eager > > >> > fetching with the new provider. > > > >> > On Jan 5, 10:31 am, "Richard Brown \(gmail\)" > > >> > <[email protected]> wrote: > > >> >> Also, if you're using the trunk, the syntax for UniqueResult recently > > >> >> changed, so it's now: > > > >> >> session.QueryOver<obj>() > > >> >> ... > > >> >> .Select(Projections.RowCount()) > > >> >> .SingleOrDefault<int>(); > > > >> >> From: Richard Brown (gmail) > > >> >> Sent: Monday, January 04, 2010 11:22 PM > > >> >> To: [email protected] > > >> >> Subject: Re: [nhusers] Re: How to specify eager loading with the new > > >> >> hql based linq provider? > > > >> >> That looks right. There's always a chance something was missed > > though > > >> >> - let me know if you find something that can be done in ICriteria but > > not in > > >> >> QueryOver. (Sorry Paul, I don't know the answer to the eager-Linq > > question > > >> >> yet though.) > > > > -- > > > 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]<nhusers%[email protected]> > > . > > > For more options, visit this group at > > >http://groups.google.com/group/nhusers?hl=en. > > > -- > > 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]<nhusers%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en. > > -- > Fabio Maulo -- 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.
