Question about injecting a dictionary collection

2009-04-25 Thread Yannis
Hi all, I am new to castle so I have a few questions: 1) In my config file can I somehow group the service implementations for each service? e.g. component id=timeService_1 service=SomeService.ITimeService, SomeService type=SomeService.SomeTimeService, SomeService /

Windsor, FluentNH - Web

2009-04-25 Thread Wayne Douglas
Can anyone point me to a good tutorial/example of using Windsor + FluentNH + in a web environment? -- Cheers, w:// --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this

Re: Windsor, FluentNH - Web

2009-04-25 Thread Ken Egozi
Fluent or no fluent, it should work the same. in App_Start: { var config = Fluently.Configure() ... .BuildConfiguration(); sessionFactory = config.BuildSessionFactory(); } in BeginRequest: { var session = sessionFactory.OpenSession(); CurrentSessionContext.Bind(session); } in

Re: Windsor, FluentNH - Web

2009-04-25 Thread Colin Ramsay
http://mikehadlow.blogspot.com/2009/01/integrating-fluent-nhibernate-and.html On Sat, Apr 25, 2009 at 5:12 PM, Wayne Douglas wa...@codingvista.com wrote: Can anyone point me to a good tutorial/example of using Windsor + FluentNH +  in a web environment? -- Cheers, w://

Re: Problem with Lazy Load (yes, another)

2009-04-25 Thread TrentCioran
Duhh I'am so stupid i was doing this in my repository base (i dont remember why, but it was there) public T Get (int primaryKey) { using (new SessionScope()) { return ActiveRecordMediator T.FindByPrimaryKey (primaryKey, false);