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); }