Skip to main content

Table.Alias Property

Specifies the alias that is used to refer to a data table instead of its name.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v23.2.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

[DefaultValue(null)]
public string Alias { get; set; }

Property Value

Type Default Description
String null

A String value, specifying the data table alias.

Remarks

Instead of addressing a table by its Table.Name, you can assign it an Alias. The alias is used to refer to a table in calculations and summary values within the SELECT statement of a SQL string. By using aliases, it is possible to identify data tables that have similar names.

To learn whether or not a table has been assigned an alias, use the Table.HasAlias property.

The Table.ActualName property returns the current identifier of a data table (its name or alias).

See Also