This method allows direct registration
of a session factory to a type, bypassing the normal preperation that AR
usually does.
The main usage is in testing, so you would be able to switch the session factory
for each test.
Note that this will override the current session factory for the baseType.
Namespace: Castle.ActiveRecord.Framework
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
void RegisterSessionFactory( ISessionFactory sessionFactory, Type baseType ) |
Parameters
- sessionFactory
- ISessionFactory
[Missing <param> documentation for "sessionFactory"]
- baseType
- Type
[Missing <param> documentation for "baseType"]
See Also
ISessionFactoryHolder Interface
Castle.ActiveRecord.Framework Namespace