Thread:
 Session.CreateCriteria(typeof(...)).List() 
 kashifpbutt   10 Jul 2008, 07:28 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: kashifpbutt (10 Jul 2008, 07:28) Replies: 0, Views: 931
Subject: Session.CreateCriteria(typeof(...)).List()
NHibernate.ICiteria crit = Session.CreateCriteria(typeof(Employee)).List
();
The List() function works like "Select * from EmployeeTable".  The 
question I have is that what type of locking is being used when 
performing this List()?  If List() applys a lock on the table before 
retrieving data, how can I set it to NOLOCK?  Any help would be greatly 
appreciated.

Kashif
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]