Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add soft deletion support and global query filters #1051

Merged

Conversation

AliRafay
Copy link
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
1 check passed
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