Hi,
I hope someone could help me. I’ve encounterd some problems and wanted to activate the sql output by setting the attribute: hibernate.show_sql to true. But I don’t see any effect. Nothing in the console and nothing in the nhibernate log file.
Maybe someone can explain this to me?
Thanks for your help,
Tobi
if (sessionFactory == null)
{
Configuration nHibernateConfig = new Configuration();
nHibernateConfig.AddAssembly("Entity");
nHibernateConfig.Properties["hibernate.connection.connection_string"] = ConfigurationValues.GetValue("NHibernateConnectionString");
nHibernateConfig.Properties["hibernate.default_schema"] = ConfigurationValues.GetValue("NHibernateDefaultSchema");
nHibernateConfig.Properties["hibernate.connection.isolation"] = ConfigurationValues.GetValue("NHibernateConnectionIsolation");
//disable query cache
nHibernateConfig.Properties["hibernate.cache.use_query_cache"] = "false";
nHibernateConfig.Properties["hibernate.show_sql"] = "true";
sessionFactory = nHibernateConfig.BuildSessionFactory();
}
|