Activities of "tufan.dayi"

Hello,

In our ABP project, we are managing permission grants through a custom seed operation. Currently, our seeding routine simply adds new permissions, but it does not remove obsolete permissions from the database if they are no longer present in the new permission set.

What we want to achieve is a clean “upsert” behavior during the seed:

Add or update all permissions present in the new seed data set (insert/update) Delete obsolete permissions from the database—meaning, any permission record that existed previously but is no longer defined in the current seed set should be removed automatically. Is there a recommended way in ABP to implement this logic? Are there any built-in helpers, repository methods, or best practices for synchronizing (upserting) permissions—so the database only contains exactly what was seeded, with obsolete ones cleaned out in the same operation? If possible, sample code or guidance would be greatly appreciated!

Thanks.

Showing 1 to 1 of 1 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 22, 2026, 11:30
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.