Skip to main content
All docs

TransformationNodeBuilder.FlattenColumn(String, String) Method

Creates individual columns from the fields of the specified column and prefixes the names of the new columns with the specified alias.

Namespace: DevExpress.DataAccess.DataFederation

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess


public TransformationNodeBuilder FlattenColumn(
    string columnName,
    string alias


Name Type Description
columnName String

The name of a column that should be flattened.

alias String

A prefix to be added to the name of each new column.


Type Description

The result of the transformation query.


The following example demonstrates how to flatten a data source’s ProductInfo column and specify a new name for this column.

Show JSON Data
        "ProductID": 1,
            "Name": "Chai",
            "UnitPrice": 18
        "ProductID": 2,
            "Name": "Chang",
            "UnitPrice": 19
using DevExpress.DataAccess.DataFederation;
using DevExpress.DataAccess.Json;
// ...
var source = new Source("Products", jsonDataSource);

var query = source
    .FlattenColumn("ProductInfo", "Info")

var federation = new FederationDataSource() {
    Queries = { query }

The following schema is the result of the transformation:

"ProductID": int
"Info_Name": string
"Info_UnitPrice": string 
See Also