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

GetVersioned and SaveVersioned #8

Open
johnknoop opened this issue Oct 26, 2019 · 1 comment
Open

GetVersioned and SaveVersioned #8

johnknoop opened this issue Oct 26, 2019 · 1 comment

Comments

@johnknoop
Copy link
Owner

var (obj, version) = await GetVersionedAsync(id);

if (!(await TryReplaceVersionedAsync(id, obj, version)))
{
    // Concurrency error
}
@johnknoop
Copy link
Owner Author

Keeps an unmapped property named _version in the persisted document.

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

1 participant