0

我使用 NHProf 已经有一段时间了,我发现它真的很有用,但是我无法让 Stack Trace 窗口像我在 tekpub 视频中看到的那样工作,如果它显示了源代码的行和文件发出休眠会话请求的代码。

我的休眠会话设置是

private static void InitializeSessionFactory()
    {
        NHibernateProfiler.Initialize();
        sessionFactory = Fluently.Configure()                        
            .Database(MsSqlConfiguration.MsSql2008.ConnectionString(@"Data Source=.\SQLEXPRESS;Initial Catalog=nhibernate;User ID=sa;Password=*****;Pooling=False")) 
            .Mappings(m => m.FluentMappings.AddFromAssemblyOf<Make>())
            .ExposeConfiguration(x => x.SetProperty("current_session_context_class", "thread_static"))
            .ExposeConfiguration(x => x.SetProperty("generate_statistic", "true"))                        .BuildSessionFactory();
    }

我应该进行一些其他配置集以使此功能正常工作吗?

4

1 回答 1

0

It should just work.
Can you open a question about this here, with a small project that reproduce that issue?

于 2012-11-29T11:05:41.653 回答