Skip to content

Add soft deletion support and global query filters#1051

Merged
iammukeshm merged 3 commits into
fullstackhero:mainfrom
AliRafay:feature/Implement-Soft-Deletable
Nov 22, 2024
Merged

Add soft deletion support and global query filters#1051
iammukeshm merged 3 commits into
fullstackhero:mainfrom
AliRafay:feature/Implement-Soft-Deletable

Conversation

@AliRafay

Copy link
Copy Markdown
Contributor

Updated AuditableEntity and ISoftDeletable to include Deleted and DeletedBy properties for soft deletion tracking. Modified FshDbContext to apply a global query filter for ISoftDeletable entities, ensuring deleted entities are excluded from queries. Enhanced AuditInterceptor to handle soft deletions, including setting Deleted and DeletedBy properties and updating entity states. Added AppendGlobalQueryFilter extension method to facilitate the application of global query filters to entities implementing specific interfaces.

AliRafay and others added 3 commits October 25, 2024 20:38
Updated `AuditableEntity` and `ISoftDeletable` to include `Deleted` and `DeletedBy` properties for soft deletion tracking. Modified `FshDbContext` to apply a global query filter for `ISoftDeletable` entities, ensuring deleted entities are excluded from queries. Enhanced `AuditInterceptor` to handle soft deletions, including setting `Deleted` and `DeletedBy` properties and updating entity states. Added `AppendGlobalQueryFilter` extension method to facilitate the application of global query filters to entities implementing specific interfaces.
@iammukeshm
iammukeshm merged commit df50461 into fullstackhero:main Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants