Skip to main content

withoutVersions

Callable


  • The same reference with every @version removed -- the spelling that answers "this entity, whatever version".

    Mirrors ScopedEntityReference.WithoutVersions(). It exists because a prefix match cannot reach a version that falls mid-string: twin~twin:[email protected]:G does not start with twin~twin:X.entity:G, and no boundary arm covers the difference. A store that answers version-tolerant queries persists this beside the verbatim reference rather than deriving it in SQL, and a client that builds such a key needs the same function or it builds a different one.

    Returns the reference itself when no component carries a version, so the common case allocates nothing.


    Parameters

    Returns EntityReference