Skip to main content

XPMemberInfo.IsAutoGenerate Property

Gets whether the member is the auto-generated key.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo


public bool IsAutoGenerate { get; }

Property Value

Type Description

true if the member is the auto-generated key; otherwise, flase.


If KeyAttribute is applied to a property or a field, the property (field) is marked as a key. If the KeyAttribute.AutoGenerate property is set to true, the key is generated automatically. In this instance, the IsAutoGenerate property return’s true.

See Also