似乎AR Integration不支持打开StatelessSession,从以下方面看: http://github.com/castleproject/Castle.Facilities.ActiveRecordIntegration/blob/master/src/Castle.Facilities.ActiveRecordIntegration/SessionFactoryDelegate.cs
查看第62行,如果不调用OpenSession,它将抛出异常。 我想调用OpenStatelessSession来初始化IStatelessSession。
我看到有些人在谈论StatelessSessionScope,但我没有找到将其用于AR集成的好例子......