You inject ISessionManager
like this
public IList<Post> GetPostsByXXX()
{
using(ISession ses=this.sessionManager.OpenSession())
{
here you perform action.
}
}
Tuna Toksöz
http://tunatoksoz.com
http://turkiyealt.net
http://twitter.com/tehlike
Typos included to enhance the readers attention!
On Fri, Mar 6, 2009 at 12:18 AM, Jan Limpens <[email protected]> wrote:
>
> 2009/3/5 Tuna Toksoz <[email protected]>:
> > ISessionManager is the thing that manages the session. Depending on the
> > option you specify(isWeb or not ), your session will be closed at the end
> of
> > request.
>
> How would I be able to inject the session into my daos?
>
> --
> Jan
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---