Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new CaseTerm
 /// </summary>
 /// <param name="condition">Condition for the WHEN clause</param>
 /// <param name="val">Value for the THEN clause</param>
 public CaseTerm(WhereClause condition, SqlExpression val)
 {
     this.cond = condition;
     this.val  = val;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Adds a <see cref='WhereClause'/> with the specified value to the
 ///   <see cref='WhereClauseCollection'/>.
 /// </summary>
 /// <param name='val'>The <see cref='WhereClause'/> to add.</param>
 /// <returns>The index at which the new element was inserted.</returns>
 /// <seealso cref='WhereClauseCollection.AddRange'/>
 public int Add(WhereClause val)
 {
     return(List.Add(val));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///   Removes a specific <see cref='WhereClause'/> from the <see cref='WhereClauseCollection'/>.
 /// </summary>
 /// <param name='val'>The <see cref='WhereClause'/> to remove from the <see cref='WhereClauseCollection'/>.</param>
 /// <exception cref='ArgumentException'><paramref name='val'/> is not found in the Collection.</exception>
 public void Remove(WhereClause val)
 {
     List.Remove(val);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///   Inserts a <see cref='WhereClause'/> into the <see cref='WhereClauseCollection'/> at the specified index.
 /// </summary>
 /// <param name='index'>The zero-based index where <paramref name='val'/> should be inserted.</param>
 /// <param name='val'>The <see cref='WhereClause'/> to insert.</param>
 /// <seealso cref='WhereClauseCollection.Add'/>
 public void Insert(int index, WhereClause val)
 {
     List.Insert(index, val);
 }
Ejemplo n.º 5
0
 /// <summary>
 ///    Returns the index of a <see cref='WhereClause'/> in
 ///       the <see cref='WhereClauseCollection'/>.
 /// </summary>
 /// <param name='val'>The <see cref='WhereClause'/> to locate.</param>
 /// <returns>
 ///   The index of the <see cref='WhereClause'/> of <paramref name='val'/> in the
 ///   <see cref='WhereClauseCollection'/>, if found; otherwise, -1.
 /// </returns>
 /// <seealso cref='WhereClauseCollection.Contains'/>
 public int IndexOf(WhereClause val)
 {
     return(List.IndexOf(val));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///   Gets a value indicating whether the
 ///    <see cref='WhereClauseCollection'/> contains the specified <see cref='WhereClause'/>.
 /// </summary>
 /// <param name='val'>The <see cref='WhereClause'/> to locate.</param>
 /// <returns>
 /// <see langword='true'/> if the <see cref='WhereClause'/> is contained in the collection;
 ///   otherwise, <see langword='false'/>.
 /// </returns>
 /// <seealso cref='WhereClauseCollection.IndexOf'/>
 public bool Contains(WhereClause val)
 {
     return(List.Contains(val));
 }