NHibernate's first level cache is available when one use same session. ActiveRecordBase.FindAll()
each time creates a new ISession
. So such a following can not profit from first level cache:
void test1()
{
Car.FindAll();
Car.FindAll();
Car.FindAll();
}
Is there any solution?