/// <summary>
        ///   增加查询组
        /// </summary>
        /// <param name = "fieldConditions">字段结构集合<see cref = "FieldConditionCollections" /></param>
        /// <param name = "nextUnionType">下个查询组的条件连接</param>
        public void Add(FieldConditionCollections fieldConditions, WhereUnionType @nextUnionType)
        {
            var queryGroupObject = new QueryGroupCondition(fieldConditions, @nextUnionType);

            Add(queryGroupObject);
        }
        /// <summary>
        ///   增加查询组
        /// </summary>
        /// <param name = "fieldConditions">字段结构集合<see cref = "FieldConditionCollections" /></param>
        public void Add(FieldConditionCollections fieldConditions)
        {
            var queryGroupObject = new QueryGroupCondition(fieldConditions);

            Add(queryGroupObject);
        }
Пример #3
0
 /// <summary>
 ///   构造
 /// </summary>
 /// <param name = "fieldConditions">字段结构集合<see cref = "FieldConditionCollections" /></param>
 public QueryGroupCondition(FieldConditionCollections fieldConditions)
     : this(fieldConditions, WhereUnionType.And)
 {
 }
Пример #4
0
 /// <summary>
 ///   构造
 /// </summary>
 /// <param name = "fieldConditions">字段结构集合<see cref = "FieldConditionCollections" /></param>
 /// <param name = "nextUnionType">下个查询组的条件连接</param>
 public QueryGroupCondition(FieldConditionCollections fieldConditions, WhereUnionType @nextUnionType)
 {
     FieldConditions = fieldConditions;
     NextUnionType   = @nextUnionType;
 }
Пример #5
0
 /// <summary>
 ///   构造
 /// </summary>
 public QueryGroupCondition()
 {
     FieldConditions = new FieldConditionCollections();
 }