GeAr wrote:
Could it be that NHibernate is querying additional data after having executed the first query for the criteria.List(), e.g. to populate a non-lazy many-to-one relationship? Could you give an example of your mapping and generated SQL?
Yes it was non-lazy many-to one relationship issue. I modified my mapping to
<bag name="FWXIndLocations" inverse="true" fetch="join">
<key column="IndividualID" />
<one-to-many class="FSI.Core.Domain.FWXIndLocation, FSI.Core" />
</bag>
I added fetch="join".
Thanks.