Skip to content

Conversation

@scalalang2
Copy link
Contributor

@scalalang2 scalalang2 commented May 12, 2025

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
27 of 28 checks passed
@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