Provides access to the data sources available in the Web Report Designer.
public ReportDesignerBuilder DataSources( Action<Dictionary<string, object>> configure )
Public Function DataSources( configure As Action(Of Dictionary(Of String, Object)) ) As ReportDesignerBuilder
A Action<T> delegate method that populates the Dictionary object passed as a parameter with the data sources.
A ReportDesignerBuilder that can be used to further configure the Report Designer.
Use this method to set a data source and then add data-aware controls to a report in the Report Designer. Refer to the ASP.NET Core Reporting article to learn how to do specify a data source.
You may need several data sources for a report. For instance, you can assign a different data source to a subreport or detail report. In addition, you can bind the Chart, Sparkline or PivotGrid report controls to individual data sources, independent of the actual report. The following code demonstrates how to set several data sources for a Report Designer.