SqlDataSourceUIHelper.EditQuery<TModel>(SqlQuery, UserLookAndFeel, IWin32Window, IDBSchemaProvider, IParameterService, IRepositoryItemsProvider, Action<IWizardCustomization<TModel>>, IServiceProvider, ICustomQueryValidator) Method

Obsolete. Invokes the Query Builder to edit the specified query.

Namespace: DevExpress.DataAccess.UI.Sql

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

Declaration

[Obsolete("This overload is obsolete now. Use EditQuery<TModel>(this SqlQuery query, EditQueryContext context, Action<IWizardCustomization<TModel>> customizeWizard) instead.")]
public static bool EditQuery<TModel>(
    this SqlQuery query,
    UserLookAndFeel lookAndFeel,
    IWin32Window owner,
    IDBSchemaProvider dbSchemaProvider,
    IParameterService parameterService,
    IRepositoryItemsProvider repositoryItemsProvider,
    Action<IWizardCustomization<TModel>> callback,
    IServiceProvider propertyGridServices,
    ICustomQueryValidator customQueryValidator
)
    where TModel : class, ISqlDataSourceModel, new()
<Obsolete("This overload is obsolete now. Use EditQuery<TModel>(this SqlQuery query, EditQueryContext context, Action<IWizardCustomization<TModel>> customizeWizard) instead.")>
<ExtensionAttribute>
Public Shared Function EditQuery(Of TModel As {Class, ISqlDataSourceModel, New})(
    query As SqlQuery,
    lookAndFeel As UserLookAndFeel,
    owner As IWin32Window,
    dbSchemaProvider As IDBSchemaProvider,
    parameterService As IParameterService,
    repositoryItemsProvider As IRepositoryItemsProvider,
    callback As Action(Of IWizardCustomization(Of TModel)),
    propertyGridServices As IServiceProvider,
    customQueryValidator As ICustomQueryValidator
) As Boolean

Parameters

Name Type Description
query SqlQuery

A SqlQuery to be edited.

lookAndFeel UserLookAndFeel

A UserLookAndFeel object, specifying the application's look and feel settings.

owner IWin32Window

An object implementing the IWin32Window interface that is the owner of the current dialog window.

dbSchemaProvider DevExpress.DataAccess.Sql.IDBSchemaProvider

An object implementing the DevExpress.DataAccess.Sql.IDBSchemaProvider interface.

parameterService IParameterService

An object implementing the IParameterService interface.

repositoryItemsProvider IRepositoryItemsProvider

An object implementing the IRepositoryItemsProvider interface that provides repository items for editing query parameters.

callback Action<IWizardCustomization<TModel>>

A Action delegate of an object implementing the IWizardCustomization<TModel> interface.

propertyGridServices IServiceProvider

An object implementing the System.IServiceProvider interface that provides access to services managing property grid functionality.

customQueryValidator ICustomQueryValidator

An object implementing the ICustomQueryValidator interface, which provides custom query validation logic.

Type Parameters

Name
TModel

Returns

Type Description
Boolean

true, if the dialog was finished by clicking the OK button; otherwise, false.

Remarks

The following image illustrates the Query Builder.

data-access-sql-data-source-ui-helper-query-designer

See Also