Hi Glenn

Hint: session.Query<User>().Where(exp) creates an HQL AST. Usually, this 
will just be built, converted to SQL, executed and thrown away as soon as 
you enumerate the results. You need to find a way to get to that AST and a) 
convert it to a string or b) (more likely) replace the "select ..." tree 
node by a "delete" node and execute it without ever having an HQL string in 
your hands.

It would be rather cool to put that into an extension method: 
session.Query<User>().Where(exp).Delete()

HTH,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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.

Reply via email to