/// <summary> /// Creates a new criteria with the specified constraint /// </summary> /// <param name="column">the column to the compare the value to</param> /// <param name="value">the value to compare against the column</param> /// <param name="comparator">the type of comparison to do (Equals, Greater than etc)</param> /// <param name="join">how to join the criteria to the previous criteria</param> public Criteria(string column, Object value, CriteriaComparator comparator = CriteriaComparator.Equal, CriteriaJoin join = CriteriaJoin.And) { this.column = column; this.value = value; this.join = join; this.comparator = comparator; }
/// <summary> /// how to join the group onto the previous criteria. /// </summary> /// <param name="join">The way to join the group onto the previous criteria or groups</param> public CriteriaGroup(CriteriaJoin join = CriteriaJoin.And) { this.join = join; }