DevExpress 仪表板 - 查询生成器中显示的限制表
Limit tables shown in DevExpress Dashboard - Query Builder
我正在尝试限制 DevExpress 仪表板查询生成器中显示的表格。
我尝试添加如下所示的查询,但查询生成器仍然显示数据库中的所有表。
有没有办法限制查询生成器中显示的表?
DataSourceInMemoryStorage dataSourceStorage = new DataSourceInMemoryStorage();
DashboardSqlDataSource sqlDataSource = new DashboardSqlDataSource("MyApp", customstringParams);
SelectQuery selectQuery = SelectQueryFluentBuilder
.AddTable("EMPLOYEE_DETAIL", "Employee Master")
.SelectAllColumns()
.Build("Employee Information");
sqlDataSource.Queries.Add(selectQuery);
SelectQuery selectQuery2 = SelectQueryFluentBuilder
.AddTable("EMPLOYEE_ATTENDANCE", "Shift Distribution")
.SelectAllColumns()
.Build("Shift Distribution");
sqlDataSource.Queries.Add(selectQuery2);
sqlDataSource.Fill();
dataSourceStorage.RegisterDataSource("sqlDataSource", sqlDataSource.SaveToXml());
DashboardConfigurator.Default.SetDataSourceStorage(dataSourceStorage);
我正在尝试限制 DevExpress 仪表板查询生成器中显示的表格。 我尝试添加如下所示的查询,但查询生成器仍然显示数据库中的所有表。
有没有办法限制查询生成器中显示的表?
DataSourceInMemoryStorage dataSourceStorage = new DataSourceInMemoryStorage();
DashboardSqlDataSource sqlDataSource = new DashboardSqlDataSource("MyApp", customstringParams);
SelectQuery selectQuery = SelectQueryFluentBuilder
.AddTable("EMPLOYEE_DETAIL", "Employee Master")
.SelectAllColumns()
.Build("Employee Information");
sqlDataSource.Queries.Add(selectQuery);
SelectQuery selectQuery2 = SelectQueryFluentBuilder
.AddTable("EMPLOYEE_ATTENDANCE", "Shift Distribution")
.SelectAllColumns()
.Build("Shift Distribution");
sqlDataSource.Queries.Add(selectQuery2);
sqlDataSource.Fill();
dataSourceStorage.RegisterDataSource("sqlDataSource", sqlDataSource.SaveToXml());
DashboardConfigurator.Default.SetDataSourceStorage(dataSourceStorage);