Skip to content

Ensure PerformUpdate method should not be called within a read-only transaction - #9492

Merged
ReubenBond merged 2 commits into
dotnet:mainfrom
scalalang2:write-is-violated-on-readonly
May 13, 2025
Merged

ReubenBond merged 2 commits into
dotnet:mainfrom
scalalang2:write-is-violated-on-readonly

Conversation

@scalalang2

@scalalang2 scalalang2 commented May 12, 2025 •

Copy link
Copy Markdown
Contributor

Background

The transactional method with [ReadOnly] attribute states that It's a read-only transaction, which is not intended to allow PerformUpdate within the transactional context.

Review

I'm not sure if this is the right approach.

var isReadOnly = (this.Options & InvokeMethodOptions.ReadOnly) == InvokeMethodOptions.ReadOnly;
Microsoft Reviewers: Open in CodeFlow

@scalalang2 scalalang2 changed the title Ensure PerformUpdate method should not be called within a read-only trasnaction Ensure PerformUpdate method should not be called within a read-only transaction May 12, 2025
Co-authored-by: Reuben Bond <[email protected]>
@ReubenBond
ReubenBond merged commit b142e70 into dotnet:main May 13, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants