All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

QueryBuilderInput Class

Contains the SQL SELECT statement and the SELECT query.

Namespace: DevExpress.DataAccess.Web.QueryBuilder

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public class QueryBuilderInput
Public Class QueryBuilderInput

The following members accept/return QueryBuilderInput objects:

Remarks

The QueryBuilderInput instance contains the query that the Web Query Builder user creates and saves. The following code snippet illustrates the purpose of this class:

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using DevExpress.XtraReports.Web.QueryBuilder.Services;
using DevExpress.DataAccess.Web.QueryBuilder;
using DevExpress.DataAccess.Sql;
// ...
[HttpPost]
public async Task<IActionResult> SaveQuery(
[FromServices] IQueryBuilderInputSerializer queryBuilderInputSerializer,
[FromForm] DevExpress.DataAccess.Web.QueryBuilder.DataContracts.SaveQueryRequest saveQueryRequest)
{
    try
    {
        var queryBuilderInput = queryBuilderInputSerializer.DeserializeSaveQueryRequest(saveQueryRequest);
        SelectQuery resultingQuery = queryBuilderInput.ResultQuery;
        string sql = queryBuilderInput.SelectStatement;
        // ...
    }
    catch (Exception ex)
    {
      // ...
    }
}

The complete sample project is available in the following DevExpress Examples repository on GitHub:

View Example: How to Use the Query Builder Control in an ASP.NET Core Application

Inheritance

Object
QueryBuilderInput
See Also