You can use the ExposeConfigurationinstance method to FluentConfigurationaccess the source NHibernate object Configuration.
Then you get access to the property Properties, and you can add current_session_context_classone.
Here is the pseudo code:
Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
.ExposeConfiguration(c =>
{
c.Properties.Add("current_session_context_class",
typeof(YourType).FullName);
})
.BuildSessionFactory();
source
share