Hi,
I am bit new to NHibernate, and I have this question regarding the performance.
Say we have two tables, A and B, mapped to classes A and B respectively.
class A {
int IdA;
//...
}
class B {
int IdB;
public A MyA;
//...
}
First I load a List<A> from DB, and then load a List<B>. When loading List<B> does it query the DB again to get MyA value, or does NHibernate keep a reference of which As has been loaded already so it reduces duplicate DB access?
Thanks a lot in advance, Anuruddha