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.v23.1.UI.dll
NuGet Package: DevExpress.DataAccess.UI
Declaration
public static bool ManageQueries<TModel>(
this SqlDataSource dataSource,
EditQueryContext context,
Action<IWizardCustomization<TModel>> customizeWizard
)
where TModel : class, ISqlDataSourceModel, new()
Parameters
Name | Type | Description |
---|---|---|
dataSource | 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).
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).