TransformationNodeBuilder.Build(String) Method
Builds a transformation node with the specified alias.
Namespace: DevExpress.DataAccess.DataFederation
Assembly: DevExpress.DataAccess.v25.2.dll
NuGet Package: DevExpress.DataAccess
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| alias | String | The alias of a transformation node. |
Returns
| Type | Description |
|---|---|
| TransformationNode | A transformation node. |
Example
The following example demonstrates how to flatten a data source’s ProductInfo column.
[
{
"ProductID": 1,
"ProductInfo":
{
"Name": "Chai",
"UnitPrice": 18
}
},
{
"ProductID": 2,
"ProductInfo":
{
"Name": "Chang",
"UnitPrice": 19
}
}
]
using DevExpress.DataAccess.DataFederation;
using DevExpress.DataAccess.Json;
// ...
var source = new Source("Products", jsonDataSource);
var query = source
.Transform()
.FlattenColumn("ProductInfo")
.Build("ProductsFlattened");
var federation = new FederationDataSource() {
Queries = { query }
};
The following schema is the result of the transformation:
"ProductID": int
"ProductInfo_Name": string
"ProductInfo_UnitPrice": string
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Build(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.