/// <summary> /// 两个Sql条件语句执行与操作 /// </summary> /// <param name="condition1">条件1</param> /// <param name="condition2">条件2</param> /// <returns>条件列表</returns> public static SqlConditionList operator &(AbstractSqlCondition condition1, SqlConditionList condition2) { if (condition2.ConcatType == SqlWhereConcatType.And) { condition2.Add(condition2); return(condition2); } else { return(SqlCondition.And(condition1, condition2)); } }
/// <summary> /// 两个Sql条件语句执行与操作 /// </summary> /// <param name="condition1">条件1</param> /// <param name="condition2">条件2</param> /// <returns>条件列表</returns> public static SqlConditionList operator &(AbstractSqlCondition condition1, AbstractSqlCondition condition2) { return(SqlCondition.And(condition1, condition2)); }