Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 09, 2013 @ 18:23
    Morten Bock
    0

    MiniProfiler with uCommerce and NHibernate

    Hi

    I'm trying out the MiniProfiler for my site, and I can see that a nuget package has been made to enable profiling NHibernate: http://nuget.org/packages/MiniProfiler.Contrib.NHibernate/

    However, the page mentions that you need to do this, to enabled it:

    cfg.SetProperty(Environment.ConnectionDriver, typeof(MiniProfilerContrib.NHibernate.ProfiledSql2008ClientDriver).AssemblyQualifiedName)

    How do I do that with uCommerce? If possible?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 01, 2013 @ 15:42
    Søren Spelling Lund
    0

    Hi Morten,

    If you need to modify the connection driver of NHibernate you'll have to take over the SessionFactory of NHibernate by creating your own SessionProvider implementation. You can take a look at how the existing one is implemented by using dotPeek or Reflector.

Please Sign in or register to post replies

Write your reply to:

Draft