Beispiel #1
0
 /// <summary>
 /// Creates an OR condition pair.
 /// </summary>
 /// <param name="left">The left condition.</param>
 /// <param name="right">The right condition.</param>
 /// <returns>A new condition pair.</returns>
 public static ConditionPair Or(ConditionBase left, ConditionBase right) => new ConditionPair(BooleanOperator.Or, left, right);
Beispiel #2
0
 /// <summary>
 /// Adds the specified join to this collection.
 /// </summary>
 /// <param name="joinType">Type of the join to add.</param>
 /// <param name="schema">The table's schema's name.</param>
 /// <param name="table">The table name.</param>
 /// <param name="on">The join condition.</param>
 public void Add(JoinType joinType, string schema, string table, ConditionBase on)
 {
     Add(new Join(joinType, new Table(table), on));
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConditionPair" /> class.
 /// </summary>
 /// <param name="type">The operator used to combine this collection with previous conditions.</param>
 /// <param name="left">The left condition.</param>
 /// <param name="right">The right condition.</param>
 public ConditionPair(BooleanOperator type, ConditionBase left, ConditionBase right)
     : this(type, left, right, false)
 {
 }
Beispiel #4
0
 internal FilterClause(ConditionBase condition) => Value = condition;