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 /
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
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
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://
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);