A newer version of this page is available. Switch to the current version.

CustomQueryValidator Class

A default implementation of the ICustomQueryValidator interface that provides custom validation logic for SQL queries.

Namespace: DevExpress.DataAccess.Wizard.Services

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

public class CustomQueryValidator :
    ICustomQueryValidator
Public Class CustomQueryValidator
    Implements ICustomQueryValidator

Remarks

The default query validation mechanism only allows an end-user to specify custom SQL queries containing 'SELECT' statements.

IMPORTANT

Although the default validation mechanism only allows custom queries containing SELECT statements (except for SELECT INTO clauses), it cannot be considered safe as it does not prevent execution of potentially harmful requests. For this reason, we strongly recommend that you implement your own validation logic that does not reduce the default restrictions and permits only execution of specific query kinds.

Inheritance

Object
CustomQueryValidator
See Also