fluent-nhibernate

how to set generate_statistics = true with fluent nhibernate


From what I understand I need to end up with this

<property name="hibernate.generate_statistics">true</property>

on the session factory configuration, but I've no idea how to do that with fluent nhibernate.


Solution

  • Configuration.ExposeConfiguration(c => c.SetProperty("generate_statistics", "true"));