Base solution for your next web application
Open Closed

Cascade delete in fullaudited entity #8499


User avatar
0
kansoftware created

Parent Table { pId primaryKey ,name }

Child Table { cId primaryKey ,cname ,pId foriegnKey with cascade delete }

Both the entities are fullaudited entity created by RAD power tool.

What will happen if we have set cascade delete against the foreign key and created a fullaudited entity. Will the child table entries be marked as "isdeleted true" when parent entry is marked "deleted"??

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kansoftware

    Yes, it should work like that. Did you try it ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    You need to cascade soft deletes yourself. See aspnetboilerplate/aspnetboilerplate#3559.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)