Given an entity A ("master") which have childs of type Q ("detail" ) it would be nice when a user try to delete some A instance, to know in advance which action will take the RDBM: if it´s CASCADE or SET NULL, then it´s OK to delete; but if it´s RESTRICT the app must get the EntitySet |
Hello _marcelo_, I am not sure I understood correctly what you want As I got it, you need certain mechanism to restrict deletion if any there is references to the deleting entity. Correct me if I have misunderstood you. DataObjects.Net has settings for associations - AssociationAttribute.OnOwnerRemove and AssociationAttribute.OnTargetRemove allow you to specify certain type of action on deletion of owner entity or target entity. You can read about these properties here in section "Referential integrity and business rules" |