Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IStorageDbInitializer Interface

In This Article

Enables you to initialize database tables for the XPO-based cache storages.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

public interface IStorageDbInitializer

#Remarks

The IStorageDbInitializer interface initializes the database specified in the connection string that is passed to the following methods used for database caching:

ASP.NET Core ASP.NET Web Forms & MVC
UseDbStorage(String) UseDbStorage(String)

The IStorageDbInitializer interface is intended for situations when an application runs under a user account without administrator rights. For security reasons, you can deny access to system tables and prohibit modifications to the database schema of the database account used in the end-user application. In such cases, you can use the IStorageDbInitializer interface to update the database schema under administrator credentials:

((IStorageDbInitializer)DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Current.GetService(typeof(IStorageDbInitializer))).InitDbSchema();
// ...
DevExpress.XtraReports.Web.ASPxWebDocumentViewer.StaticInitialize();

The IStorageDbInitializer.InitDbSchema() method operates with the database specified in the connection string passed to the UseDbStorage method in the startup configuration. The InitDbSchema() method creates tables needed to implement the cache and store reports, documents and exported documents.

For more information, review the following help topic: Web Document Viewer Cache Management.

See Also