views:

585

answers:

2

Title says it all.

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.

Thanks

Andrew

+2  A: 
Configuration.ExposeConfiguration(c => c.SetProperty("generate_statistics", "true"));
Andrew Bullock
+2  A: 

Depending on how you're configuring Fluent NHibernate, the Database Configuration has a Raw method that you can use to specify settings that we haven't implemented yet.

SQLiteConfiguration.Standard
  .Raw("hibernate.generate_statistics", "true");
James Gregory
Thanks. Leaving out the hibernate part worked for me:xxxx.Raw("generate_statistics", "true");
KevinT

related questions