FilterExpressionBuilder class
Used for building Sql commands using Korzh.EasyQuery.Db.DbQuery
public class Korzh.EasyQuery.Db.FilterExpressionBuilder : DbQueryBuilderPackage: Korzh.EasyQuery.Db (targets: netstandard2.0)
Assembly: Korzh.EasyQuery.Db.dll
Constructors
Section titled “Constructors”| Name | Type | Description |
|---|---|---|
| FilterExpressionBuilder(DbQuery query) | void | Initializes a new instance of the Korzh.EasyQuery.Db.SqlQueryBuilder class. |
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| CanBuild | bool | Gets a value indicating whether this instance can be built. |
| Result | FilterExpression | Gets the result. |
Events
Section titled “Events”| Name | Type | Description |
|---|---|---|
| CondSqlGen | ConditionSqlGeneratedEventHandler | This event is raised during query building for each condition in the query and it allows you to replace the SQL expression generated for this condition. |
Methods
Section titled “Methods”| Name | Type | Description |
|---|---|---|
| Build() | bool | Builds the filter expression. It can be used (for example) in DataSet.FilterExpression property to filter data |
| OnCondSqlGen(ConditionSqlGeneratedEventArgs e) | void | Raises the CondSqlGen event. |
| ResetFilterBuilder() | void | Resets the filter builder. |