brockallen / BrockAllen.MembershipReboot

MembershipReboot is a user identity management and authentication library.
Other
743 stars 239 forks source link

How to edit claims for multiple accounts in one transaction? #708

Open molntamas opened 6 years ago

molntamas commented 6 years ago

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.