The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

ReportDataProvider.MassUpdateDataType<T>(IObjectSpace, String, Type) Method

Updates references to a particular data type in all reports stored in the application database.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v19.2.dll

Declaration

public static void MassUpdateDataType<T>(
    IObjectSpace objectSpace,
    string oldDataType,
    Type newDataType
)
    where T : IReportDataV2Writable
Public Shared Sub MassUpdateDataType(Of T As IReportDataV2Writable)(
    objectSpace As IObjectSpace,
    oldDataType As String,
    newDataType As Type
)
public static void MassUpdateDataType<T>(
    IObjectSpace objectSpace,
    string oldDataType,
    Type newDataType
)
    where T : IReportDataV2Writable
Public Shared Sub MassUpdateDataType(Of T As IReportDataV2Writable)(
    objectSpace As IObjectSpace,
    oldDataType As String,
    newDataType As Type
)

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object used to access report data.

oldDataType String

A string which is the old full name of a data type.

newDataType Type

A Type which is the new data type.

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object used to access report data.

oldDataType String

A string which is the old full name of a data type.

newDataType Type

A Type which is the new data type.

Type Parameters

Name Description
T

Type Parameters

Name Description
T

Remarks

The MassUpdateDataType<T> method is useful when you rename a particular business class and wish to update references to this class in your existing reports. As this method is static, you can call it from any appropriate context where the IObjectSpace instance is available. For example, you can call this method from the overridden ModuleUpdater.UpdateDatabaseAfterUpdateSchema method in the Updater.cs (Updater.vb) file. The generic T parameter specifies the report data type (business class type implementing IReportDataV2), used in your application.

using DevExpress.ExpressApp.ReportsV2;
//...
ReportDataProvider.MassUpdateDataType<ReportDataV2>(
    ObjectSpace, "MySolution.Module.Department", typeof(Division));
See Also