Hi,
I have a one-to-many relation between two classes: Master and MasterDetail.
A particular Master object contains a collection of 100 MasterDetails:
when I delete the Master with session.Delete(master) method I observe that NHibernate executes 101 SQL DELETE statements, one for each MasterDetail and one to delete itself.
Is it possible to execute only 2 operations, one to delete the 100 MasterDetails and one for the Master?
Thanks
Antonella
Hibernate version: 1.0.3
Name and version of the database you are using:SQL Server 2000
|