-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Does LockMode.Upgrade work?
PostPosted: Wed Mar 18, 2009 3:48 pm 
Newbie

Joined: Wed May 30, 2007 2:18 pm
Posts: 14
Hi all,

I'm using NHibernate 2.0.1 GA with SQL Server 2005.

I tried to lock a record like so:
session.Lock(myObj, LockMode.Upgrade);

I run my code in debug and pause after this line. I then go into management studio and try to modify/read the record and it works without a problem. I though the lock should prevent me from doing this?

Does anyone know what I could be doing wrong?

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.