Exemplo n.º 1
0
 public void FromOption(IOption option)
 {
     if (option is OptionConditionExpression optionConditionExpression)
     {
         this.Left = optionConditionExpression.Left;
         if (optionConditionExpression.IsBetween)
         {
             this.Cond = ConditionBetween.FromOption(optionConditionExpression);
         }
         else
         {
             this.Cond = ConditionMatch.FromOption(optionConditionExpression);
         }
     }
 }
Exemplo n.º 2
0
 public Condition FromOptionToCondition(IOption option)
 {
     if (option is OptionConditionExpression optionConditionExpression)
     {
         this.Left = optionConditionExpression.Left;
         if (optionConditionExpression.IsBetween)
         {
             this.Cond = ConditionBetween.FromOption(optionConditionExpression);
         }
         else
         {
             this.Cond = ConditionMatch.FromOption(optionConditionExpression);
         }
     }
     return(this.Cond);
 }