You could just wrap your code in
session.BeginTransaction(IsolationLevel.ReadUncommitted) {}

On Jan 27, 7:14 pm, Phil Whittaker <[email protected]>
wrote:
> Hi
>
> I am using Nhibernate 2.12 and am having an issue with LockMode. I am trying
> to add NoLock to the sql statement on an alias. When I do this using a
> crieria that doesn't provide a projectionlist it works fine. But when I add
> a projection list it gives me a nasty 'Object reference not set to an
> instance of an object' error on the
> NHibernate.Loader.Criteria.CriteriaLoader.ApplyLocks(SqlString
> sqlSelectString, IDictionary`2 lockModes, Dialect dialect) part of
> nhibernate.
>
> Am I missing something?
>
> Phil

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to