I am afraid I cannot offer you much real advice in that endeavor. If you were to add a bit more detail and background and post it to the alt.net mailing list <http://tech.groups.yahoo.com/group/altdotnet/> there is a good chance you'd get a useful answer. The topics of DI and NHibernate come up there very often :)
On Fri, Oct 3, 2008 at 11:31 PM, anydiem <[EMAIL PROTECTED]> wrote: > > > > On Oct 3, 5:13 pm, "Paul Batum" <[EMAIL PROTECTED]> wrote: > > However given that code such as the > > SessionSource has recieved very little attention since that time (and we > > don't sync additional work of Jeremy's into our repo), I would be a > little > > wary of it. > > OK, thanks for the info. I may try something more like the > SessionBuilder stuff I've seen in other NH code so far. > > > The current implementation of SessionSource does indeed behave like a > > Factory. I suspect that Jeremy stored it in a DI container as a > singleton, > > though I am just guessing here. > > That makes sense. I've not been able to get my head around how to use > a DI container in the instance I'm in... I have an ActiveRecord-style > object that wants to be in control of its own .Save() and .Load() > operations (legacy code) and haven't managed to figure out the best > way to refactor towards repository to get its saves and loads under > the control of a container. I may be overcomplicating that as well. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---