Hi,
We want to use NHibernate behind our WCF service but we are having problems persisting child record deletes to the database.
We use DTO's between the service and client which have IList<> as the child collection type. When we populate a DTO using NHibernate it sets the child collection to be a type of Bag. However, when this is sent over the wire WCF will change this collection type to an Array.
If we delete a record from the array and pass it back to the service, NHibernate will not persist the deletion to the database.
Is there somehow we can tell NHibernate (in the mapping?) to delete any child records that do not exist in the Array?
Thanks in advance Matt