all-delete-orphans http://ayende.com/Blog/archive/2006/12/02/nhibernatecascadesthedifferentbetweenallalldeleteorphansandsaveupdate.aspx
/Oskar 2010/9/19 Kris-I <[email protected]>: > It's there : http://pastebin.com/muaCXMvu > > but I tried several solution without success (with inverse for > example) > > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" > assembly="xxx.DomainModel" namespace="xxx.DomainModel"> > > <class name="Product" table="Product"> > <id name="Id" column="Id" type="Guid"> > <generator class="guid.comb"/> > </id> > > <property name="Name" length="50" not-null="true" /> > <property name="Code" length="50" not-null="true" /> > > <bag name="ProductDetails" cascade="all" > table="ProductDetails"> > <key column="Product" not-null="true" /> > <one-to-many class="ProductDetail"/> > </bag> > > </class> > </hibernate-mapping> > > > On Sep 19, 6:29 pm, Oskar Berggren <[email protected]> wrote: >> What cascading rules do you have in your mapping? >> >> /Oskar >> >> 2010/9/19 Kris-I <[email protected]>: >> >> > I tried .... I don't see any DELETE in NHProf and of course my test >> > failed >> >> > On Sep 19, 4:44 pm, cliff vaughn <[email protected]> wrote: >> >> Wow, that's a fairly creative way to remove an item from a list. Try >> >> just using one of the Remove() methods on the list. Something like >> >> the following: >> >> > -- >> > 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 >> > athttp://groups.google.com/group/nhusers?hl=en. > > -- > 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. > > -- 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.
