Back to Devexpress

XpoDefault.GuidGenerationMode Field

xpo-devexpress-dot-xpo-dot-xpodefault-36955104.md

latest1.6 KB
Original Source

XpoDefault.GuidGenerationMode Field

Specifies how globally unique identifiers are generated (if the KeyAttribute.AutoGenerate property is true ). The default value is FrameworkDefault. To provide a custom Guid primary key generation algorithm, set this field to Custom and assign a Func<Guid> delegate to the XpoDefault.CustomGuidGenerationHandler field. Refer to the GuidGenerationMode topic to see the example.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public static GuidGenerationMode GuidGenerationMode
vb
Public Shared GuidGenerationMode As GuidGenerationMode

Field Value

TypeDescription
GuidGenerationMode

Specifies how XPO generates new globally unique identifier values.

|

See Also

XpoDefault Class

XpoDefault Members

DevExpress.Xpo Namespace