In particular, I'd like to set current_session_context_class
. I know how to do it in hibernate.cfg.xml, but is it possible at all with pure fluent configuration?
相关问题
-
NHibernate Query
with detached criteria… - Fluent NHibernate automap PostGIS geometry type
- Using NHibernate to execute DDL statements
- Setting Linq to NHibernate ADO Command Timeout
- NHibernate: many-to-one and lazy
相关文章
- Fluent NHibernate — Saving Entity with Composite K
- Is this the right way of using ThenFetch() to load
- Can Persistence Ignorance Scale?
- How to find if a referenced object can be deleted?
- Null value objects in NHibernate
- NHibernate SQL query slow
- Fluent nHibernate automapping property as nvarchar
- NHibernate: How to perform eager subselect fetchin
You can use the method
ExposeConfiguration
on aFluentConfiguration
instance, to access the original NHibernateConfiguration
object.Then, you'll have access to the
Properties
property, and you will be able to add thecurrent_session_context_class
one.Here is a the pseudo-code: