AddConditionGroup(LinkType lnkType = 99) | Condition | Creates and adds a new group of conditions into the current one |
AddConditionWithExpr(string attrId, string operatorId, EqExpression[] values) | Condition | Adds a simple condition by the entity attribute's ID, the operator's ID and the list of values |
AddCustomCondition(string operatorId, EqExpression[] expressions) | Condition | |
AddSimpleCondition(string attrId, string operatorId = null, String[] values) | Condition | Adds a simple condition by attribute ID, operator ID and a list of values |
AddSimpleCondition(EntityAttr attr, Operator op, EqExpression[] exprs) | Condition | Adds a simple condition by attribute ID, operator ID and a list of values |
AdjustOperator() | void | Adjusts the operator by base expression. |
BeginUpdate() | void | Starts the update process. OnConditionsChanged event of corresponding Query object is not raised while condition is in update state |
CheckDataModel() | void | Checks DataModel property. Generates an exception if it is null. |
CheckQuery() | void | Checks Query property. Generates an exception if it is null. |
Clone() | Condition | Creates a duplicate of the current condition. |
ContainsGhosts(Condition& outCond) | bool | Determines whether this condition group contains a condition with a "ghost" attribute. |
CreateValueExpr(int index) | EqExpression | Creates the value expression. |
CreateValueExprByOperand(Operand opnd) | EqExpression | Creates a value expression by operand. |
DoExprContentChanged(object sender, EventArgs e) | void | Does the expr changed. |
EndUpdate() | void | Ends the update process. Raises ConditionsChange event if some modification(s) was(were) made during update process. |
Find(Func <Condition, bool > conditionPredicate, bool processGroup = True) | Condition | Search all sub-conditions of this condition and returns the first condition for which conditionPredicate function returns true |
FindCondByAttr(EntityAttr attr) | Condition | Finds the condition the by entity attribute set in the left part of this condition. |
GetBaseAttr() | EntityAttr | Gets the base entity attribute for this condition. |
GetConditionGroupHeader() | string | Gets the condition group header text. |
GetConditionText(QueryTextFormats formats, string levelSpace, string prefix) | string | Returns text representation of the search condition |
GetHaving() | bool | Gets a value indicating whether this condition must be placed into HAVING clause in result SQL. Must be overriden in the inherited classes |
GetOffspringCount() | int | Gets the number of all offspings of the condition group |
GetOldClassName() | string | Gets the old name of the condition class (PDCT or SMPL). |
GetOperand(int index) | Operand | Gets the condition operand based on its index. Index 0 stands for an attribute |
GetSimpleConditionText(QueryTextFormats formats, string levelSpace, string prefix) | string | Returns text representation of thesimple condition |
GetText(QueryTextFormats formats) | string | Returns text representation of condition |
GetText() | string | Returns text representation of condition |
GetText(QueryTextFormats formats, string levelSpace, string prefix) | string | Returns text representation of condition |
GetUsedEntities() | IEnumerable <Entity> | Gets the list of entities that are used in conditions of this group. |
InsertSimpleCondition(int index, EntityAttr attr, Operator op, EqExpression[] exprs) | Condition | Inserts a simple condition by the attribute, the operator and the list of expressions |
IsGhostBaseExpr() | bool | |
LoadFromXmlReader(XmlReader reader) | void | Loads the propertis of the Korzh.EasyQuery.Condition from the XML reader. |
LoadXmlAttributes(XmlReader reader) | void | Loads conditions node attributes from XML reader. |
MoveDown() | void | Moves the condition to one position down (taking into account the level of other conditions). |
MoveUp() | void | Moves the condition to one position up (taking into account the level of other conditions). |
ReadFromJsonAsync(JsonReader reader, CancellationToken ct = null) | Task | Reads the content of the condition from JSON (asynchronous way). |
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct) | Task | Reads one property of the condition from JSON (asynchronous way). |
RecreateValueExpr(int index) | EqExpression | Recreates the value expression. |
Refresh() | void | Refreshes this instance. |
RemoveThis() | void | Removes this condition from the query |
Reset() | void | Clears the condition list and resets linking type |
SaveToXmlWriter(XmlWriter writer) | void | Saves condition object to XML writer. |
Scan(Action <Condition> conditionHandler, bool processGroup = True) | void | Scans all sub-conditions of this condition group and calls a handler for each of them |
SetEnabled(bool newValue, bool updateChildren = True, bool silent = False) | void | Sets the Enabled property. |
SetOperator(Operator newOperator) | void | Sets the operator. |
SetOperatorSilent(Operator newOperator) | void | Sets the operator in "silent" mode (no event is raised, no expression is adjusted). |
SetQuery(Query newQuery) | void | Sets the query. |
SetReadOnly(bool newValue, bool silent = False) | void | Sets the ReadOnly property. |
SetValueExpr(int index, EqExpression expr) | void | Sets the value expression. |
ShiftLevel(bool up) | void | Shifts the row level (taking into account the level of other rows) |
WriteContentToXml(XmlWriter writer) | void | Writes the content of condition to the XmlWriter object. |
WritePropertiesToJsonAsync(JsonWriter writer, CancellationToken ct) | Task | Writes all condition properties to JSON (asynchronous way). (this method can be overriden in inherited classes) |
WriteToJsonAsync(JsonWriter writer, CancellationToken ct = null) | Task | Writes the content of the condition to JSON (asynchronous way). |