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.v20.1.UI.dll

Declaration

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

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