NHibernate on-delete=“cascade” with relationship on many side
问题 I have an object model like that: Folder - simple structure with name etc. File - complex object containing reference to Folder in which it is contained. Folder doesn't know its Files and I don't want it to know. The relation is many-to-one and should be known on File's side only. Anyway, I would like to rely on my database's ON DELETE CASCADE feature, so that when I remove Folder, I want all Files within that Folder to be deleted automatically. I can't use NHibernate's cascading as there is