GuidGenerationMode Enum
Contains values that specify how XPO generates new globally unique identifier values.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
#Members
Name | Description |
---|---|
Framework
|
The Guid. |
Uuid
|
The Uuid |
Custom
|
A custom algorithm specified by the Xpo |
#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;