How to add an extra condition to your query
/how-to/add-extra-conditionTwo possible ways of resolving this task
Condition class
/api-reference-4x/korzh-easyquery-namespace/condition-classRepresents one condition in the query.
Condition.LinkType enum
/api-reference/korzh-easyquery/korzh-easyquery-namespace/condition-linktype-enumRepresents type of linking of conditions in group
Condition class
/api-reference-5x/korzh-easyquery-namespace/condition-classRepresents one condition in the query.
How to add a column with the same attribute as in newly added condition
/how-to/add-column-by-condition-attributeA code snippet which demonstrates how to do this task
Condition class
/api-reference/korzh-easyquery/korzh-easyquery-namespace/condition-classRepresents one condition in the query.
TableLink.Condition class
/api-reference/korzh-easyquery-db/korzh-easyquery-db-namespace/tablelink-condition-classRepresents linking condition
Attaching extra data to a query on the client-side
/tutorials/attaching-extra-data-to-query-client-sideSometimes it's necessary to attach some extra data to each query (based on some user's input on the client-side) and then use that extra data on query execution. For example, user might want to specify a date (or a period of time) as an additional filter to the any query. To add some extra data you can use beforeExecuteQuery event handler which can be defined on view initialization: Now if you check in Developer Tools (on Network tab), each .../execute request now includes ad additional data object in the request payload. Now to process this additional request data you can create your own implementation of EasyQueryManager and override its ExecuteQueryCore method. Here is an example: Here we just reconfigure our current query and add in it an additional condition group with a bunch of conditions like SomeColumns contains 'filter text' Finally, you need to register your manager class on EasyQuery middleware initialization: NB: Please note that you can read the ClientData property in any method of your custom manager.
Navigate through query conditions
/how-to/run-through-query-conditionsA code snippet which demonstrates how to run through all conditions in your query
Adding columns and conditions with code
/how-to/add-columns-conditions-with-codeExample of code for adding columns and conditions
Using parameters in query conditions
/how-to/parameters-in-query-conditionsThis article explains how to work with parameterized conditions.
Add a new aggregate function
/how-to/add-aggregate-functionEasyQuery allows to add new aggregate functions for user's need. Here is detailed manual of how to do it with code example.
Dynamically populate lists by information from other conditions — WebForms
/how-to/dynamically-populating-list-webformsA code snippet which demonstrates how to execute this task
Dynamically populate value lists by information from other conditions
/how-to/dynamically-populating-lists-mvcSuppose we have a database with Customer entity which has Country and City attributes. For both these attributes we define the value editors which return the lists of available values (countries and cities correspondingly). Now let's imagine the user adds a condition with the Country attribute e.g. Hera the steps needed to implement such a functionality: Define a value editor for the City attribute as SQL LIST with Cities.@{{Customer.Country}} list name (here Customer.Country is the ID of the Country attribute in the Customer entity). Let's name it "CitesSqlValueList") and then in a value list resolver modify its SQL according the currently selected country and get the list of values using GetValueListAsync method of EasyQueryManager class: What's happening here.
Replace "value" element in QueryPanel's conditions — WinForms
/how-to/replace-value-elementHere is a step-by-step description what you need to achieve this goal
Add query builder page from our MVC sample project in your own app
/how-to/mvc-query-builder-view-in-your-appThis article described how to set up an advanced search page in your web-application using EqMvcDemoDB project as a template.
Building data model dynamically using code (version 3.x)
/how-to/build-data-model-by-codeHere you can find all steps you need to perform
Query class
/api-reference-5x/korzh-easyquery-namespace/query-classRepresents internal query structure.
Predicate class
/api-reference-4x/korzh-easyquery-namespace/predicate-classRepresents group of conditions linked by some logical operator (AND or OR).