In my business logic I would like to remove a claim from several users and add that claim to another user within a single transaction.
How could I achieve that this operation of removals and adding happens in one transaction in the SQL database?
I guess I could use the DbContextUserAccountRepository class, edit the accounts and then do a save operation. But I was wondering if there is a better approach.
In my business logic I would like to remove a claim from several users and add that claim to another user within a single transaction.
How could I achieve that this operation of removals and adding happens in one transaction in the SQL database?
I guess I could use the DbContextUserAccountRepository class, edit the accounts and then do a save operation. But I was wondering if there is a better approach.