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.InitDbSchema() Method

In This Article

Initializes database tables for the XPO-based cache storages (XpoDocumentStorage, XpoExportedDocumentStorage, and XpoReportStorage).

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

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

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

void InitDbSchema()

#Remarks

You can only call the InitDbSchema method if you specify a database connection string in the UseDbStorage method, which is run at the application start:

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

For the Microsoft SQL Server database, the InitDbSchema method creates the XPObjectType, XpoDocumentStorageEntity, XpoExportedDocumentStorageEntity, and XpoReportStorageEntity tables, as the following image shows:

InitDbSchema Created Cache Tables

See Also