Skip to main content
A newer version of this page is available. .

DashboardConfigurator.SetDBSchemaProvider(IDBSchemaProviderEx) Method

Specifies a custom data store schema.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v18.2.Web.dll

Declaration

public void SetDBSchemaProvider(
    IDBSchemaProviderEx provider
)

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.

Example

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()

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetDBSchemaProvider(IDBSchemaProviderEx) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also