유창한 nhibernate를 사용하여 generate_statistics = true를 설정하는 방법
-
03-07-2019 - |
문제
내가 이해 한 바에 따르면 나는 이것으로 끝나야한다
<property name="hibernate.generate_statistics">true</property>
세션 공장 구성에서는 유창한 nhibernate로 어떻게 해야할지 모르겠습니다.
해결책
Configuration.ExposeConfiguration(c => c.SetProperty("generate_statistics", "true"));
다른 팁
줄을 피하기 위해 nhibernate 3에서 :
Configuration.ExposeConfiguration(c => c.SetProperty(NHibernate.Cfg.Environment.GenerateStatistics, "true"));
유창한 nhibernate를 구성하는 방법에 따라 데이터베이스 구성 a Raw
아직 구현하지 않은 설정을 지정하는 데 사용할 수있는 메소드.
SQLiteConfiguration.Standard
.Raw("hibernate.generate_statistics", "true");
제휴하지 않습니다 StackOverflow