HQL, I'm afraid -

 

session.CreateQuery("delete from Entity").ExecuteUpdate();

 

/Pete

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Sean Farrow
Sent: 16 May 2013 06:48
To: '[email protected]'
Subject: [nhusers] clearing a table using NHibernate

 

Hi,

 

What's the easiest way of clearing a table off all its records using
NHibernate?

Any help appreciated.

Cheers

Sean.

-- 
You received this message because you are subscribed to the Google
Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to