DashboardConfigurator.SetDBSchemaProvider(IDBSchemaProviderEx) Method

Specifies a custom data store schema.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v20.1.Web.dll

Declaration

public void SetDBSchemaProvider(
    IDBSchemaProviderEx provider
)
Public Sub SetDBSchemaProvider(
    provider As IDBSchemaProviderEx
)

Parameters

Name Type Description
provider IDBSchemaProviderEx

An object that implements the IDBSchemaProviderEx interface representing the data store's schema

Remarks

IMPORTANT

To learn how to use the DashboardConfigurator's API, see the Server-Side API Overview topic.

Examples

This example demonstrates how to customize a data store schema for a dashboard data source that uses a connection to the Northwind database.

In this example, the IDBSchemaProviderEx interface is implemented by a class that defines a custom data store schema containing two related tables.

To see the result, add a new query or edit the existing query.

<script type="text/javascript">
    function onBeforeRender(sender) {
        var control = sender.getDashboardControl();
        control.registerExtension(new DevExpress.Dashboard.DashboardPanelExtension(control));
    }
</script>
@Html.DevExpress().Dashboard(settings => {
    settings.Name = "Dashboard";
    settings.Width = Unit.Percentage(100);
    settings.Height = Unit.Percentage(100);
    settings.ClientSideEvents.BeforeRender = "onBeforeRender";
}).GetHtml()
See Also