@GrahamWhat Roger said is one more point a little bit more deeper... BTW for a full answer about what happen each time you are doing something with an instance of ISession would require a book. The better attitude for a NH's beginner is : read reference, buy "NHibernate in Action", enjoy it. After few months you can start with some more deeper questions.
2009/3/2 Roger Kratz <[email protected]> > > << so just to clarify, if I did a Load by key, the 1st level cache will be > checked, otherwise it won't?>> > > FYI > ISession is also an identity map ( > http://martinfowler.com/eaaCatalog/identityMap.html), ensuring no > duplicate instances exists in one ISession/uow. This check of the state in > ISession will occur no matter if id is known or unknown (but _after_ the > query in your case). > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Graham Bunce > Sent: den 2 mars 2009 13:59 > To: nhusers > Subject: [nhusers] Re: When/how does NHibernate check its 1st level cache? > > > Thanks Fabio. > > As I was writing that, I suspected it needed to know the key which, of > course, it doesn't - so just to clarify, if I did a Load by key, the > 1st level cache will be checked, otherwise it won't? > > > 2nd level cache eh? Looks like I'm going to be learning how to use > yet another feature of NHibernate :) > > > > > > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
