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

Add functionality to chain patch operations on multiple fields #2931

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

mysticmind
Copy link
Member

@mysticmind mysticmind commented Jan 28, 2024

Refer to GH-699 for details. You can perform patch operations as below:

theSession.Patch<Target>(target.Id)
    .Set(x => x.Number, 10)
    .Increment(x => x.Inner.Number, 10);

@mysticmind mysticmind changed the title Add functionality to chain patch operations Add functionality to chain patch operations on multiple fields Jan 28, 2024
@jeremydmiller
Copy link
Member

Looks good to me! I'm pulling this in.

@jeremydmiller jeremydmiller merged commit f3ee80c into master Jan 29, 2024
11 checks passed
@jeremydmiller jeremydmiller deleted the patch_operation_chaining branch January 29, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants