Skip to content

Design question regarding business object delete with child table deletes and history actions #4011

Discussion options

You must be logged in to vote

I ended up creating delete triggers, on my tables, that copy the data to history tables. We have scenarios where we delete objects (and their children) and insert new objects (their data) in the database.
All of our objects have delete methods that in turn call delete methods in dataaccess layer (we use encapsulated invocation).
In the dataportal create methods we call the delete methods on data access first ( and eventually delete stored procs) and then we call the Insert methods in data access layer (within the aforementioned dataportal create).
I hope I didn't make it sound too confusing : )

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by jhuerta3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants