looks like a bug, could you please create a issue in jira? Hint; you can hook a fake logger to assert how many sql sentences should do. Have a look to Linq Futures tests.
2011/1/6 Алексей <[email protected]> > <class name="Object" table="Object" lazy="false" dynamic- > update="true"> > <id name="ID" column="ID" type="System.Int64"> > <generator class="identity"/> > </id> > <many-to-one name="Owner" column="OwnerID" not-null="false" > fetch="join" class="Person"/> > </class> > > <class name="GalacticDatabase.Player" table="Player" lazy="false"> > <id name="ID" column="ID" type="System.Int64" > > <generator class="identity"/> > </id> > <bag name="Objects" fetch="join" inverse="true" > > <key column="OwnerID"/> > <one-to-many class="Object" not-found="ignore"/> > </bag> > </class> > > If I get objects in LINQ querry, NHibernate makes many SELECTs in > resulting SQL (SQL Server 2008 database). > Querry use - Take( topCount ). In NHibernate.Linq.dll with version 2.1 > all works normal. (Execute with one join) > > -- > 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]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
