I solved this by just creating 2 sessions.

1 for my immutable readonly data
1 for my mutable data.

I can then perform Session.Clear() on my mutable session and keep my
immutable data safe.

On Jul 22, 1:28 pm, fknebels <[email protected]> wrote:
> it's a winforms application so I'm using a Session per screen.
>
> it's a rules engine so I don't want to have to fetch the rules every
> time I run through a block of data.
>
> On Jul 22, 12:46 pm, Fabio Maulo <[email protected]> wrote:
>
> > I am afraid to ask you which pattern you are using for session management...
>
> > On Thu, Jul 22, 2010 at 1:06 PM, fknebels <[email protected]> wrote:
> > > I had a question about removing bunches of entities from the Session.
>
> > > I have some data that I never want to remove from the session.  And
> > > then there is some I want to remove and add new data.  I know I can
> > > Evict entities 1 at a time or perform a full Session.Clear.  I there a
> > > way to say clear an entire group of entities of the same type
> > > efficiently?
>
> > > Thanks,
> > > Fran
>
> > > --
> > > 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.
>
> > --
> > 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.

Reply via email to