filterexpressionbuilder-class
Used for building Sql commands using Korzh.EasyQuery.Db.DbQuery
public class Korzh.EasyQuery.Db.FilterExpressionBuilder
: DbQueryBuilder
Assembly: Korzh.EasyQuery.Db.dll
Constructors
Name | Type | Description |
---|---|---|
FilterExpressionBuilder(DbQuery query) | void | Initializes a new instance of the Korzh.EasyQuery.Db.SqlQueryBuilder class. |
Properties
Name | Type | Description |
---|---|---|
CanBuild | bool | Gets a value indicating whether this instance can be built. |
Result | FilterExpression | Gets the result. |
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
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. |