CalculatedField.DataMember Property

Gets or sets a data member that specifies to what query the field belongs.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v20.2.Core.dll

Declaration

[DefaultValue(null)]
public string DataMember { get; set; }
<DefaultValue(Nothing)>
Public Property DataMember As String

Property Value

Type Default Description
String

null

A String value that specifies the calculated field's data member.

Remarks

The DataMember property should be specified only for DashboardSqlDataSource and DashboardEFDataSource. The SQL and EF Data Sources can contain multiple queries and the DataMember property of a calculated field determines to what query this field belongs.

The following example shows how to specify DataMember for calculatedFieldNotWorking:

CalculatedField calculatedFieldNotWorking = new CalculatedField {
    DataMember = "DashboardSqlDataSourceQueryWithJoin",
    Name = "Calculated Field",
    Expression = "[FirstName]",
    DataType = CalculatedFieldType.String
};
See Also