views:

284

answers:

1

Is it possible to set the LockMode when using NHibernate.Linq? When using ICriteria I can this way:

var criteria = Session.CreateCriteria<Foo>();
criteria.SetLockMode(LockMode.None);
criteria.Add(Expression.Eq("Title", title));

Is it possible to build that same query using Nhibernate.Linq?

+1  A: 

I don't think so... I just grepped through the NHibernate.Linq source code and its tests and found no reference to LockMode.

Mauricio Scheffer
Maybe they will add it in the future release.
mxmissile