Skip to main content

SqlDataSourceUIHelper.AddQuery<TModel>(SqlDataSource, EditQueryContext, Action<IWizardCustomization<TModel>>) Method

Invokes the Query Editor dialog.

Namespace: DevExpress.DataAccess.UI.Sql

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

NuGet Package: DevExpress.DataAccess.UI

Declaration

public static bool AddQuery<TModel>(
    this SqlDataSource dataSource,
    EditQueryContext context,
    Action<IWizardCustomization<TModel>> customizeWizard
)
    where TModel : class, ISqlDataSourceModel, new()

Parameters

Name Type Description
dataSource SqlDataSource

A SqlDataSource to which the resulting query will be added.

context EditQueryContext

An EditQueryContext object, specifying the Query Designer settings.

customizeWizard Action<IWizardCustomization<TModel>>

A Action delegate of an object implementing the IWizardCustomization<TModel> interface.

Type Parameters

Name
TModel

Returns

Type Description
Boolean

true, if the wizard page was switched by clicking the Next or Finish button; otherwise, false.

Remarks

The following image illustrates the invoked ConfigureQueryPage.

configure-query-page

See Also