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