<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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.