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.  [ 3 posts ] 
Author Message
 Post subject: Delete a range of record with parameter query
PostPosted: Thu Oct 16, 2008 4:45 am 
Beginner
Beginner

Joined: Fri Feb 29, 2008 9:36 am
Posts: 40
HI

Please, what's the syntax for delete in NHibernate 1.2 ?

session.Delete("from tests where enabled = :value", 0, NHibernate.NHibernateUtil.Int32);

or

session.Delete("from tests where enabled = ?", 0, NHibernate.NHibernateUtil.Int32);

Thanks,

Papy !


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2008 4:55 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
The second one.
And I think NHibernate 2.0 also don't support named parameters for delete.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2008 5:20 am 
Beginner
Beginner

Joined: Fri Feb 29, 2008 9:36 am
Posts: 40
Ok, thanks !


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

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.