IDataSourceCacheKey.Parameters Property
Provides access to the associated dashboard’s parameter collection.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
Property Value
Type | Description |
---|---|
List<IParameter> | A collection of dashboard parameters. |
Remarks
When a dashboard parameter in the collection changes its value, it leads to the cache key recreation. If dashboard parameters have no effect on the resulting dataset, associated data requests are unnecessary. Use the DashboardConfigurator.DataSourceCacheKeyCreated or ASPxDashboard.DataSourceCacheKeyCreated event to exclude the dashboard parameter collection from the cache key. This way you can optimize data access performance.
The following code snippet handles the DataSourceCacheKeyCreated
event to exclude dashboard parameter collection from cache keys for the ASP.NET Core Dashboard Control:
configurator.DataSourceCacheKeyCreated += (sender, args) => {
args.Key.Parameters.Clear();
};