Skip to main content

SqlDataSourceUIHelper.RebuildResultSchema(SqlDataSource, RebuildResultSchemaContext) Method

Updates the data source schema available on the client in accordance to the current data source structure.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v24.1.UI.dll

NuGet Package: DevExpress.DataAccess.UI

Declaration

public static bool RebuildResultSchema(
    this SqlDataSource dataSource,
    RebuildResultSchemaContext context
)

Parameters

Name Type Description
dataSource SqlDataSource

A SqlDataSource object, specifying the database connection.

context RebuildResultSchemaContext

A RebuildResultSchemaContext object that contains settings used to update a data source schema.

Returns

Type Description
Boolean

true, if the dialog was finished by clicking the OK button; otherwise, false.

Remarks

The following image illustrates the Rebuild Result Schema action available in the SqlDataSource smart tag (corresponds to the RebuildResultSchema method of the SqlDataSourceUIHelper class).

data-access-sql-data-source-smart-tag-rebuild-schema-command

See Also