private void AppendCondition(SQConditionBase condition, SQLogicOperators connective) { if (NextCondition == null) { NextCondition = condition; Connective = connective; } else { NextCondition.AppendCondition(condition, connective); } }
public SQConditionGroup(bool invertMeaning, SQConditionBase innerCondition) { InnerCondition = innerCondition; InvertMeaning = invertMeaning; }
public SQConditionGroup(SQConditionBase innerCondition) : this(false, innerCondition) { }
/// <summary> /// Append a condition with a connective "or" to this condition chain and return this. /// </summary> /// <param name="nextCondition"></param> /// <returns>The current condition</returns> public SQConditionBase Or(SQConditionBase nextCondition) { AppendCondition(nextCondition, SQLogicOperators.OR); return(this); }
/// <summary> /// Append a condition with a connective "and" to this condition chain and return this. /// </summary> /// <param name="nextCondition"></param> /// <returns>The current condition</returns> public SQConditionBase And(SQConditionBase nextCondition) { AppendCondition(nextCondition, SQLogicOperators.AND); return(this); }