Skip to main content
A newer version of this page is available. .

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

Invokes the Query Editor dialog.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v18.2.UI.dll

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