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

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

Invokes the Query Builder to manage the specified queries.

Namespace: DevExpress.DataAccess.UI.Sql

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

Declaration

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

Parameters

Name Type Description
sqlDataSource SqlDataSource

A SqlDataSource object, specifying the database connection.

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 dialog was finished by clicking the Finish button; otherwise, false.

Remarks

The following image illustrates the Manage Queries dialog window that is invoked after selecting an appropriate SqlDataSource action (corresponds to calling the ManageQueries<TModel> method of the SqlDataSourceUIHelper class).

data-access-sql-data-source-ui-manage-queries-dialog-window

After adding two or more queries to a data connection, it becomes possible to configure their data relations by using the Master-Detail Relations Editor (invoked by calling the SqlDataSourceUIHelper.ManageRelations method of the SqlDataSourceUIHelper class).

data-access-sql-data-source-ui-master-detail-relation-editor

See Also