Automatic dirty checking will take care of this when the session is flushed (which normally happens when you commit a transaction)
On Mon, Aug 16, 2010 at 4:27 AM, Jacob Madsen <[email protected]> wrote: > Hi all, > > Is there a method to retrieve references to all entities known by a > session > > using (var session = sessionFactory.OpenSession()) > { > var entity = session.Get<SomeType>(someId); // "entity" is now > known by the session > .... > var allKnownEntities = /* here I want to retrieve all entities > known/attached to a session */ > .... > } > > > I want to implement a "void SaveChanges()" method that will Update all > modified entities known by a session. > > Cheers! > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
