Currently I am using a workaround saving the Configuration from
ExposeConfiguration():
[SetUp]
public void SetUp()
{
var bootStrapper = new MediaManagerBootstrapper();
Configuration config = null;
var sessionFactory = Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
.Mappings(m =>
m.AutoMappings.Add(bootStrapper.AutoPersistenceModel))
.ExposeConfiguration(c => { config = c; })
.BuildSessionFactory();
Session = sessionFactory.OpenSession();
var sessionSource = new SessionSource(config.Properties,
bootStrapper.AutoPersistenceModel);
sessionSource.BuildSchema(Session);
}
Any suggestions?
Nic