At present, there's a function ISession.Delete(string hql) - however,
I've not seen an equivalent for the QueryOver or LINQ API's.  What do
people think about adding similar functionality, e.g.

IQueryOver<XXX>.Delete();
// Delete all objects returned by the QueryOver
LinqExtensionMethods.Delete(this IQueryable<XXX> qry)           // etc

The use-case that I'm encountering is where I have a many-to-many
relationship between Foo and Bar but only one end of the relationship is
mapped (as a one-to-many); an instance of Foo is being deleted, and all
related Bar's need to be removed as well.  At the moment, I think I can
either use HQL or do a list-then-delete which is a very sucky operation
IMO - if I've missed something please let me know!

Thoughts?

/Pete

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to