Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NHibernate.Linq LockMode

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?

like image 390
mxmissile Avatar asked Oct 15 '22 13:10

mxmissile


1 Answers

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

like image 169
Mauricio Scheffer Avatar answered Oct 18 '22 15:10

Mauricio Scheffer