This post shows some examples of how you can do it. http://marekblotny.blogspot.com/2009/02/fluent-nhbernate-and-collections.html
On Tue, Mar 24, 2009 at 3:22 PM, Miha Necak <[email protected]> wrote: > > I am trying to find a way to set the "on-delete" = "cascade" attribute > on key tag that NHibernate enables. The result as I understand should > also be exportable sql schema geration script with cascades. The goal > is for the database to handle cascaded deletes. > > I've tried all the available conventions, but none of them seems to be > able to provide me what i am trying to achieve. I've even tried > SetAttribute("on-delete", "cascade") approach, but no luck there > either - I wasn't able the find the appropriate tag to apply it to in > API. > > I am probably missing, so i would realy appreciate some pointers. > > Thanks in advance for any advice. > Best regards, Miha > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
