Skip to content

Breaking Idea: Separate LockedDocument and SharedDocument classes #89

@anthony0br

Description

@anthony0br

Currently, Document is used to represent two things which are mostly distinct, but have some functionality in common.

You would never use OpenAndUpdate on a session-locked document, because you could just open it and use cache, for example, but you can't use the cache methods on non-session-locked documents.

Document would represent session-locked documents. Update would be removed.

LockedDocument & SharedDocument would inherit some methods from a Document class. LockedDocument would implement caching and not expose protected methods from Document like Update, whereas SharedDocument would essentially be an UpdateAsync wrapper with migrations.

This would be a breaking changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions