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

Ignoring concurrency check #1287

Closed
mogaozq opened this issue Feb 15, 2019 — with docs.microsoft.com · 5 comments
Closed

Ignoring concurrency check #1287

mogaozq opened this issue Feb 15, 2019 — with docs.microsoft.com · 5 comments

Comments

Copy link
Contributor

mogaozq commented Feb 15, 2019

Given i have set a concurrency token for an entity. In some cases (database commands) i don't matter the concurrency, i just want SQL commands to be executed without checking for concurrency token.
So, how can i Ignore concurrency check for special database operations?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Copy link

I am also working on this issue. Our solution is to enable OCC OnModelCreating in EFCore. We have a background worker we want to ignore OCC, so we don't enable the check on that DbContext object.

@ajcvickers
Copy link
Member

Duplicate of issue dotnet/efcore#10443

Leaving open to consider documenting workaround.

@divega
Copy link
Contributor

divega commented Sep 11, 2019

Triage: We don't believe we should recommend the workaround described above. For now it is just a missing feature. If someone comes with another workaround we can consider it.

Copy link

Any suggestible work around?

@ajcvickers
Copy link
Member

@santosh-kh Try implementing an IDbCommandInterceptor to manipulate the return value representing the number of rows affected.

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

No branches or pull requests

5 participants