Hi Jason,
Thanks for responding.... That is exactly what I want.. just one
instance of the ISessionFactory
The code I am using is
ISessionFactoryHolder holder = GetSessionFactoryHolder();
IStatelessSession session =
holder.GetConfiguration(holder.GetRootType(targetType)).BuildSessionFactory().OpenStatelessSession();
Using the ActiveRecordMediator.
English is my second language so I dont fully understand what "Testing
hock only" means
Can you explain me this sentence?
On 24 ago, 10:21, Jason Meckley <[email protected]> wrote:
> I don't know where the ISessionFactoryHolder interface or implementation is,
> but the session factory should be a singleton. whether you manage this
> through an IOC or your own code you effectively want
>
> static readonly ISessionFactory factory = new
> Configuration().Configure().BuildSessionFactory();
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.