Same problem here with example: http://stackoverflow.com/questions/1737985/nhibernate-2-linq-eager-load
On Nov 17, 11:16 am, lexer <[email protected]> wrote: > Hi, > > I've article and tag entities which has many to may assotiations. > > When I'm querying my articles with Linq to NH it eagerly loads its > tags. > > session.Linq<Article>(); > > Is Linq to NH always use eager loading instead of lazy loading? > > Also I've tried use IQueryable.Expand extension method. > > session.Linq<Article>().Expand("Tags"); > > In this case it duplicates articles for each tag. > > Instead of 1 article with 3 tags it returns three same articles with 3 > tags. > > Best regards, > Alexey Zakharov. -- 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=.
