Is there a way to do mass adding/removing from collections with the
new Executable HQL? E.g.
// Apply category to all posts
this.session.CreateQuery("insert into
Post.Categories :cat").SetParameter("cat", category).ExecuteUpdate();
or
// Remove category X from all posts (but do not delete the category
itself)
this.session.CreateQuery("delete from Post.Categories c where c
= :cat").SetParameter("cat", category).ExecuteUpdate();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---