how to specify LockMode for Linq queries?

32 views
Skip to first unread message

Joseph Lam

unread,
Nov 24, 2011, 6:07:04 AM11/24/11
to nhusers
I need to acquire a Upgrade lock on the list of entities retrieved via
Linq and wouldn't want to call .Lock() on each of them separately
after retrieval.

Joseph

Trinition

unread,
Dec 14, 2012, 8:54:33 AM12/14/12
to nhu...@googlegroups.com
I found no way to accomplish this.  However, the only time I need to lock entities (so far) is when I'm getting a particular one by ID, which I accomplish using ISession.Get(..., LockMode) rather than querying through LINQ.
Reply all
Reply to author
Forward
0 new messages