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.
On Thursday, November 24, 2011 6:07:04 AM UTC-5, Joseph Lam wrote: > > 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 > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/o_3pQLVevtgJ. 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.
