Hi all

Not sure if this is off-topic or what :-)

When I create a repository interface it looks a bit like this

    public interface BlogEntryRepository
    {
        BlogEntry GetByID(ISession session, int id);
    }

I am a bit suspicious of the "ISession" parameter.  I suspect it shouldn't 
be there.  I also suspect there is a standard pattern for registering the 
session in the IoC or something (maybe child containers?).  I'd be 
interested in any descriptions of what techniques you use.



Thanks


Pete
====
http://mrpmorris.blogspot.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to