You need cascade all-orphan-delete.
On Wed, May 12, 2010 at 7:12 PM, Sujith <[email protected]> wrote:
> Hi All,
>
> I have a Parent Table whose mapping as
>
> HasMany(x => x.OptionalProperties)
> .KeyColumnNames.Add("Id").
> Inverse().
> AsSet().
> Cascade.All().Not.LazyLoad();
>
> and my child table has a reference to the parent as
>
> References(x => x.Seat, "Id").Not.LazyLoad();
>
> Now when i update the parent record and put the Child collection
> Property as null and do a Persist, the child records doesnt get
> deleted..it stays as it is..
>
> Am i dng anything wrong...
>
> Regards
>
> Sujith
>
> --
> 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]<nhusers%[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.