public override FormFilterCondition Copy() { var copy = new FilterCombination { Type = Type, RightFilter = RightFilter.Copy(), LeftFilter = LeftFilter.Copy() }; return(copy); }
public override DbParameter[] GetParameters() { DbParameter[] leftParams; DbParameter[] rightParams; if (LeftFilter.UsesParameter && RightFilter.UsesParameter) { leftParams = LeftFilter.GetParameters(); rightParams = RightFilter.GetParameters(); return(leftParams.Concat(rightParams).ToArray()); } else if (LeftFilter.UsesParameter) { return(LeftFilter.GetParameters()); } else if (RightFilter.UsesParameter) { return(RightFilter.GetParameters()); } return(null); }
protected internal override string GetSQLClause() { return($"{LeftFilter.GetSQLClause()} {Link} {RightFilter.GetSQLClause()}"); }