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

Check for concurrent updates. #94

Open
mgernand opened this issue Apr 4, 2023 · 0 comments
Open

Check for concurrent updates. #94

mgernand opened this issue Apr 4, 2023 · 0 comments

Comments

@mgernand
Copy link
Contributor

mgernand commented Apr 4, 2023

Add an interface IProvideConcurrencyStampwhich provide a string property ConcurrencyStamp.
The repositories then need to update the stamp on every update and must throw if the entity was changed in the meantime.

See: https://github.com/mgernand/AspNetCore.Authorization.Permissions/blob/c894d393dd4d7ed4f857df48f27177dde7c7bd99/src/AspNetCore.Identity.Permissions.MongoDB/TenantStore.cs#L115

https://github.com/mgernand/AspNetCore.Authorization.Permissions/blob/c894d393dd4d7ed4f857df48f27177dde7c7bd99/src/AspNetCore.Identity.Permissions.EntityFrameworkCore/TenantStore.cs#L139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant