Skip to main content

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​

NameTypeDescription
FilterExpressionBuilder(DbQuery query)voidInitializes a new instance of the Korzh.EasyQuery.Db.SqlQueryBuilder class.

Properties​

NameTypeDescription
CanBuildboolGets a value indicating whether this instance can be built.
ResultFilterExpressionGets the result.

Events​

NameTypeDescription
CondSqlGenConditionSqlGeneratedEventHandlerThis 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​

NameTypeDescription
Build()boolBuilds the filter expression. It can be used (for example) in DataSet.FilterExpression property to filter data
OnCondSqlGen(ConditionSqlGeneratedEventArgs e)voidRaises the CondSqlGen event.
ResetFilterBuilder()voidResets the filter builder.