private void AddFilterParameter(FilterCondition filter) { OpenParentesis(); AppendParameter(filter.Left); AppendCompareOperator(filter); AppendParameter(filter.Right); CloseParentesis(); }
private static CompareOperator ChangeCompareOperatorToIsWhenParameterValueIsNull(FilterCondition filterCondition) { var parameter = filterCondition.Right as FilterParameter; if (parameter == null || parameter.FilterParameterType != FilterParameterType.Value || !parameter.ValueIsNullOrDBNull ) { return filterCondition.CompareOperator; } return CompareOperator.Is; }