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

Invokes the Query Editor dialog.

Namespace: DevExpress.DataAccess.UI.Sql

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

Declaration

public static bool AddQuery<TModel>(
    this SqlDataSource dataSource,
    EditQueryContext context,
    Action<IWizardCustomization<TModel>> customizeWizard
)
    where TModel : class, ISqlDataSourceModel, new()
<ExtensionAttribute>
Public Shared Function AddQuery(Of TModel As {Class, ISqlDataSourceModel, New})(
    dataSource As SqlDataSource,
    context As EditQueryContext,
    customizeWizard As Action(Of IWizardCustomization(Of TModel))
) As Boolean

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