Appearance
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
| Name | Description |
|---|---|
comb | JASE SQL Server COMB when conversion succeeds. |
uuid | Candidate 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.