The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

GuidGenerationMode Enum

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public enum GuidGenerationMode
Public Enum GuidGenerationMode
public enum GuidGenerationMode
Public Enum GuidGenerationMode

Members

Name Description
Custom

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

FrameworkDefault

The Guid.NewGuid method is used.

UuidCreateSequential

The UuidCreateSequential function is used.

Remarks

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