Skip to content

TryConvertToSqlComb Method ​

Definition ​

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

bool TryConvertToSqlComb(Guid uuid, out Guid comb) ​

csharp
bool TryConvertToSqlComb(Guid uuid, out Guid comb)

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

Parameters ​

NameDescription
combJASE SQL Server COMB when conversion succeeds.
uuidCandidate UUIDv7.

Returns ​

True if uuid is v7.

Remarks ​

The result is a different Guid: version 8, timestamp in RFC bytes 10–15 so SQL Server's uniqueidentifier comparison is time-ordered. It is not a drop-in for PostgreSQL v7 locality. Round-tripping v7 → COMB → v7 restores the original value. GetPrimaryKey is not preserved: v7's ordered field is 12 bits and COMB's is 14.