Skip to content

TryConvertToV7 Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.IdGenerator.dll

bool TryConvertToV7(Guid uuid, out Guid v7) ​

csharp
bool TryConvertToV7(Guid uuid, out Guid v7)

Try to rewrite a JASE SQL Server COMB as an RFC 9562 UUIDv7 with the same timestamp and entropy.

Parameters ​

NameDescription
uuidCandidate COMB.
v7RFC UUIDv7 when conversion succeeds.

Returns ​

True if uuid is a JASE COMB.

Remarks ​

Inverse of TryConvertToSqlComb. The result is a different Guid (version 7, timestamp in bytes 0–5). Round-tripping COMB → v7 → COMB restores the original value. GetPrimaryKey is not preserved: COMB's ordered field is 14 bits and v7's is 12.