File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -51,24 +51,8 @@ public void ConfigureServices(IServiceCollection services) {
51
51
sqlDataSource . Queries . Add ( query ) ;
52
52
dataSourceStorage . RegisterDataSource ( "sqlDataSource" , sqlDataSource . SaveToXml ( ) ) ;
53
53
54
- // Registers an Object data source.
55
- DashboardObjectDataSource objDataSource = new DashboardObjectDataSource ( "Object Data Source" ) ;
56
- dataSourceStorage . RegisterDataSource ( "objDataSource" , objDataSource . SaveToXml ( ) ) ;
57
-
58
- // Registers an Excel data source.
59
- DashboardExcelDataSource excelDataSource = new DashboardExcelDataSource ( "Excel Data Source" ) ;
60
- excelDataSource . FileName = FileProvider . GetFileInfo ( "Data/Sales.xlsx" ) . PhysicalPath ;
61
- excelDataSource . SourceOptions = new ExcelSourceOptions ( new ExcelWorksheetSettings ( "Sheet1" ) ) ;
62
- dataSourceStorage . RegisterDataSource ( "excelDataSource" , excelDataSource . SaveToXml ( ) ) ;
63
-
64
54
configurator . SetDataSourceStorage ( dataSourceStorage ) ;
65
55
66
- configurator . DataLoading += ( s , e ) => {
67
- if ( e . DataSourceName == "Object Data Source" ) {
68
- e . Data = Invoices . CreateData ( ) ;
69
- }
70
- } ;
71
-
72
56
return configurator ;
73
57
} ) ;
74
58
}
You can’t perform that action at this time.
0 commit comments