Inheritance: SqlFragment
Ejemplo n.º 1
0
 protected ConditionalOperator(Predicate leftOperand, Predicate rightOperand)
 {
     if (leftOperand == null) {
         throw new ArgumentNullException("leftOperand");
     }
     if (rightOperand == null) {
         throw new ArgumentNullException("rightOperand");
     }
     this.LeftOperand = leftOperand;
     this.RightOperand = rightOperand;
 }
Ejemplo n.º 2
0
 public SearchedCaseCondition(Predicate whenPredicate, Expression thenValue)
 {
     if (whenPredicate == null) {
         throw new ArgumentNullException("whenPredicate");
     }
     if (thenValue == null) {
         throw new ArgumentNullException("thenValue");
     }
     this.WhenPredicate = whenPredicate;
     this.ThenValue = thenValue;
 }
Ejemplo n.º 3
0
        public SearchedCase CaseWhen(Predicate whenPredicate, Expression thenValue)
        {
            if (whenPredicate == null) {
                throw new ArgumentNullException("whenPredicate");
            }

            if (thenValue == null) {
                throw new ArgumentNullException("thenValue");
            }

            this.conditions.Add(new SearchedCaseCondition(whenPredicate, thenValue));
            return this;
        }