It's easy if I have everything set up.  I don't.  I'm currently
writing in the domain, trying to be mindful of NHibernate.  This
particular feature I've never had to consider before.  I was hoping I
could leverage my peers experience here before I head too far down a
wrong path or spend time setting up a test.


On Apr 3, 8:18 am, Jason Dentler <[email protected]> wrote:
> There's an easy solution:
> Try it and watch NH Profiler or the NHibernate.SQL log.
>
>
>
> On Fri, Apr 2, 2010 at 2:21 PM, Trinition <[email protected]> wrote:
> > I'm thinking list.
>
> > On Apr 2, 2:51 pm, Fabio Maulo <[email protected]> wrote:
> > > for which type of collection ?
> > > <set>
> > > <map>
> > > <list>
> > > <array>
> > > <bag>
> > > <idbag>
>
> > > with which kind of lazy loading ? standard or extra ?
>
> > > 2010/4/2 Trinition <[email protected]>
>
> > > > I have a requirement to record an audit message for some business
> > > > operations affecting one of my entities (i.e. not just who/when/what,
> > > > but "why" something happened).  While there could be the occasion
> > > > where I need to fetch/filter the past audit messages for an entity,
> > > > the much more common case is adding audit messages.
>
> > > > The straight forward solution is to just do a one-to-many from Entity
> > > > to EntityAuditMessage and simply to a List.Add(new
> > > > EntityAuditMessage(...)) at those points in the entity's logic where
> > > > something noteworthy happens.
>
> > > > What I'm not clear on is whether doing an Add to a lazily-loaded List
> > > > will incur the list being loaded, thereby incurring an increasing
> > > > performance hit over time.
>
> > > > Can someone briefly confirm or deny how an Add to a lazy-loaded list
> > > > will behave in NH?
>
> > > > --
> > > > 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]
> > > >  >
> > <nhusers%[email protected]<nhusers%252bunsubscr...@googlegroup 
> > s.com>>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/nhusers?hl=en.
>
> > > --
> > > 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]<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.

Reply via email to