Skip to content

Commit e45873f

Browse files
author
Natalia Kazakova (DevExpress)
committed
add readme
1 parent a98623d commit e45873f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Readme.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
*Files to look at*:
2+
3+
* [Default.aspx.cs](./CS/AspNetWebFormsDataFederation/Default.aspx.cs) (VB: [Default.aspx.vb](./VB/AspNetWebFormsDataFederation/Default.aspx.vb))
4+
5+
# ASP.NET Web Forms Dashboard - How to Register a Federated Data Source
6+
7+
This example registers the [DashboardFederationDataSource](https://docs.devexpress.com/Dashboard/DevExpress.DashboardCommon.DashboardFederationDataSource) from the following set of [data sources](https://docs.devexpress.com/Dashboard/116522):
8+
9+
* [DashboardSqlDataSource](https://docs.devexpress.com/Dashboard/401437) (the SQLite database)
10+
* [DashboardExcelDataSource](https://docs.devexpress.com/Dashboard/401433)
11+
* [DashboardObjectDataSource](https://docs.devexpress.com/Dashboard/401435)
12+
* [DashboardJsonDataSource](https://docs.devexpress.com/Dashboard/401431)
13+
14+
The federated data source is stored in the in-memory storage ([DataSourceInMemoryStorage](https://docs.devexpress.com/Dashboard/DevExpress.DashboardWeb.DataSourceInMemoryStorage)) and is available from the [Add Data Source](https://docs.devexpress.com/Dashboard/117456/web-dashboard/create-dashboards-on-the-web/providing-data/manage-data-sources) dialog. Note that when you add a federated data source to a dashboard, all data sources used in the federated data source are also added to the dashboard.
15+
16+
![](web-data-federation.png)
17+
18+
This example demonstrates the following query types you can use to create a data federation:
19+
20+
* **Join**
21+
22+
Combines rows from two or more tables based on a column they share. The join type specifies records that have matching values in both tables.
23+
24+
* **Union and UnionAll**
25+
26+
**Union** combines rows from two or more tables into a single data set and removes duplicate rows in merged tables. **UnionAll** operates in the same manner as **Union**, but duplicates rows from different tables when they contain the same data. You can create a union query for data sources if data types of their columns are [implicitly converted](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/casting-and-type-conversions#implicit-conversions).
27+
28+
* **Transformation**
29+
30+
If a data source contains a complex column (an object), you can transform its properties to display them as separate columns in a flattened view. If one of the data column is an array, you can unfold its values and display a new data row for every element of the array. When you unfold the column, you can flatten it and create a flattened view.
31+
32+
## Documentation
33+
34+
* [ASP.NET Web Forms Framework - Register a Federated Data Source](https://docs.devexpress.com/Dashboard/402458)
35+
* [Register Default Data Sources](https://docs.devexpress.com/Dashboard/116300)
36+
37+
## Examples
38+
39+
- [ASP.NET Core Dashboard - How to Register a Federated Data Source](https://github.com/DevExpress-Examples/aspnet-core-dashboard-data-federation)
40+
- [ASP.NET MVC Dashboard - How to Register a Federated Data Source](https://github.com/DevExpress-Examples/aspnet-mvc-dashboard-data-federation)

web-data-federation.png

23.6 KB
Loading

0 commit comments

Comments
 (0)