dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-251d474c.md
Specifies the IDBCommandInterceptor object for the Dashboard Designer control.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
[Browsable(false)]
[DefaultValue(null)]
public IDBCommandInterceptor CustomDBCommandInterceptor { get; set; }
<DefaultValue(Nothing)>
<Browsable(False)>
Public Property CustomDBCommandInterceptor As IDBCommandInterceptor
| Type | Default | Description |
|---|---|---|
| IDBCommandInterceptor | null |
An IDBCommandInterceptor object.
|
Dashboard controls execute a variety of SQL statements against the database. Implement IDBCommandInterceptor to intercept these data source commands. You can suppress a command or modify the execution algorithm.
The following example shows how to override the default isolation level (READ COMMITTED) in a specific query. The change allows users to retrieve information without being locked by another process that modifies the same data. This can significantly reduce the query time.
Implement the IDBCommandInterceptor interface (NolockInterceptor.cs in this example). Call the IDBCommandInterceptor.CommandCreated(String, IDbCommand) method and specify CommandText to execute.
Assign the NolockInterceptor object to the CustomDBCommandInterceptor property.
See Also