.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

GuidGenerationMode Enum

Contains values that specify how XPO generates new globally unique identifier values.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll


public enum GuidGenerationMode
Public Enum GuidGenerationMode


Name Description

The Guid.NewGuid method is used.


The UuidCreateSequential function is used.


A custom algorithm specified by the XpoDefault.CustomGuidGenerationHandler delegate is used.


You can pass these enumeration values to the XpoDefault.GuidGenerationMode property.

To use the Custom mode, assign a custom Func<Guid> delegate to the XpoDefault.CustomGuidGenerationHandler field:

using DevExpress.Xpo;
// ...
Func<Guid> myCustomGuidGenerationAlgorithm = () => { return Guid.NewGuid(); };
XpoDefault.CustomGuidGenerationHandler = myCustomGuidGenerationAlgorithm;
XpoDefault.GuidGenerationMode = GuidGenerationMode.Custom;
See Also