Skip to main content

XPMemberInfo.IsAliased Property

Gets whether a PersistentAliasAttribute attribute is applied to the property.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v22.2.dll

NuGet Package: DevExpress.Xpo


public bool IsAliased { get; }

Property Value

Type Description

true if the member has the PersistentAliasAttribute attribute; otherwise, false.


The following example shows how to use the PersistentAliasAttribute to implement a public read-only property exposing a value of the private persistent property. The expression passed in the PersistentAliasAttribute class constructor specifies the name of the field which stores the value at runtime. The field is decorated with the PersistentAttribute whose PersistentAttribute.MapTo property holds the name of the data store column where the field’s value is stored.

using DevExpress.Xpo;

// ...
private string mDefaultAddress;

public string DefaultAddress {
    get {
        return mDefaultAddress;
See Also