Skip to content
Discussion options

You must be logged in to vote

Yes, there are various ways to do this. I think some might be discussed in the Using CSLA 4 book.

The basic idea is this: the parent object (the list) has a default implementation for updating its children, and you can override that method. You basically need to do the same thing the default implementation does, but you can do it differently.

The default implementation loops through the list of deleted items and asks each child to delete itself, then they are removed from the deleted list.

It then loops through the list of active items and asks each child to update itself (if IsDirty is true), or insert itself (if IsNew is true).

Normally you put the code to insert/update/delete a child i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RocketLabsDev
Comment options

Answer selected by RocketLabsDev
Comment options

You must be logged in to vote
1 reply
@RocketLabsDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants