Dodo.Primitives
Library provides .NET primitive types:
and utils to work with types:
Project goal
The main goal is Uuid implementation according to the RFC4122.
.NET provides System.Guid struct which is special case of the RFC4122 implementation. System.Guid has little-endian layout for the first 8 bytes (int32, int16, int16).
Our goal is to provide Uuid fully compliant with RFC4122 (big-endian layout) and preserve System.Guid-like behaviour. Also project contains generators to create different Uuid variants. Currently supported variants:
-
Time-based (like Uuid v1).
var uuid = Uuid.NewTimeBased();
-
Time-based, optimized for MySQL.
var uuid = Uuid.NewMySqlOptimized();
Equals
UUID_TO_BIN(UUID(), 1)
from MySQL 8.0