Inheritance: SqlFragment
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
        }