Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you certain that this is the case? If you're only verifying the isolation level by what NHProf is telling you; that could be a problem. Remember that NHProf is only reporting what the logging infrastructure in NHibernate feeds it. Perhaps the isolation level message isn't sent when you open a transaction with the default? This could probably be verified by investigating the NHibernate source.</p> <p>I would suggest using an alternate means to verify the transaction level (perhaps SQL Profiler?) before concluding that this isn't working as expected.</p> <p><strong>Edit:</strong></p> <p>I've had a look at the NHibernate source and can verify my hunch above. If you have a look at the <a href="http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/tags/2.1.1GA/nhibernate/src/NHibernate/Transaction/AdoTransaction.cs?revision=4816&amp;view=markup" rel="noreferrer">AdoTransaction</a> source you'll note that it is logging an isolation level of IsolationLevel.Unspecified when a transaction is started without specifying a specific isolation level. </p> <pre><code>// This is the default overload you're calling: public void Begin() { Begin(IsolationLevel.Unspecified); } // This is the full method impl public void Begin(IsolationLevel isolationLevel) { // snip.... // This is the problematic line here; it will report an isolationLevel of Unspecified. log.Debug(string.Format("Begin ({0})", isolationLevel)); // snip... } </code></pre> <p>However, the actual transaction is being started with the isolation level specified in the config a few lines down as such:</p> <pre><code>if (isolationLevel == IsolationLevel.Unspecified) { isolationLevel = session.Factory.Settings.IsolationLevel; } </code></pre> <p>So, it would seem that NHProf is not being entirely accurate in this instance.</p> <p><strong>Update:</strong></p> <p>It appears this has been fixed in the trunk version of NHibernate, so I'm guessing this is no longer an issue with NHibernate 3.xx.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload