GuidGenerationStrategy Enum

Specifies the strategy used by the generated New() method to create new Guid values.

public enum GuidGenerationStrategy

Fields

NameValueDescription
None0No New() method is generated.
Version41Creates a random UUID (version 4) using Guid.NewGuid. This is the strategy used when the property is not set.
Version72Creates a time-ordered UUID (version 7) using Guid.CreateVersion7(). Requires .NET 9 or later.