I want to prevent the deletion of the parent, and my primary/foreign key constraints do this for me. Unfortunately, I have no way of knowing if the parent is deleteable or not, so if a user clicks on the "Delete" button, for example, they would get a nasty error message.
I would love it if there was some sort of parameter in my entities that would tell me if the entity is deleteable or not, based on a foreign key constraint or some other set of rules that I could define. Perhaps an IsDeleteable property?
Would this be too much, or overkill to add? How have you approached this?
Thanks.
I'm outside ur box, shiftin' ur paradigm.