Steven Giesel 7/8/2024

UUID v7 in .NET 9

Read Original

This article details the introduction of UUID version 7 support in .NET 9 Preview 7, covering the new `Guid.CreateVersion7()` API. It explains the timestamp-based structure of UUID v7, its advantages for database sorting over UUID v4, and how to control the timestamp using `DateTimeOffset` and `TimeProvider` for testing.

UUID v7 in .NET 9

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week