/// <summary> /// 创建新的Sql条件语句集合 /// </summary> /// <param name="concatType">连接类型</param> /// <param name="conditions">查询语句集合</param> /// <exception cref="ArgumentNullException">查询语句集合不能为空</exception> /// <returns>Sql条件语句集合</returns> public static SqlConditionList CreateList(SqlWhereConcatType concatType, List <ISqlCondition> conditions) { if (conditions == null) { throw new ArgumentNullException("conditions"); } return(SqlCondition.CreateList(SqlWhereConcatType.And, conditions.ToArray())); }
/// <summary> /// 创建或连接的Sql条件语句集合 /// </summary> /// <param name="conditions">查询语句集合</param> /// <returns>Sql条件语句集合</returns> public static SqlConditionList Or(List <ISqlCondition> conditions) { return(SqlCondition.CreateList(SqlWhereConcatType.Or, conditions.ToArray())); }
/// <summary> /// 创建或连接的Sql条件语句集合 /// </summary> /// <param name="conditions">查询语句集合</param> /// <returns>Sql条件语句集合</returns> public static SqlConditionList Or(params ISqlCondition[] conditions) { return(SqlCondition.CreateList(SqlWhereConcatType.Or, conditions)); }