Ejemplo n.º 1
0
 private void AppendCondition(SQConditionBase condition, SQLogicOperators connective)
 {
     if (NextCondition == null)
     {
         NextCondition = condition;
         Connective    = connective;
     }
     else
     {
         NextCondition.AppendCondition(condition, connective);
     }
 }
Ejemplo n.º 2
0
 public SQConditionGroup(bool invertMeaning, SQConditionBase innerCondition)
 {
     InnerCondition = innerCondition;
     InvertMeaning  = invertMeaning;
 }
Ejemplo n.º 3
0
 public SQConditionGroup(SQConditionBase innerCondition)
     : this(false, innerCondition)
 {
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <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);
 }