Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Cascade delete not working on extended entity(OU) #4010


User avatar
0
pointlevel created

Hi!

I have extended the OrganizationUnit entity, and also added a reference (one-to-one) to another entity. The child entity inherits the filter, FullAuditedEntity. But when i delete the organizationUnit only the OrganizationUnit is softdeleted, nothing happens to the child entity. I have tried using both the OrganizationUnitManager and also my newly created Appservice for the extended entity for the delete task, but no difference.

public async Task DeleteMyExtendedOU(long id)
        {
            await _myExtendedOURepository.DeleteAsync(id);
        }

1 Answer(s)