示例#1
0
		private void AddFilterParameter(FilterCondition filter) {
			OpenParentesis();
			AppendParameter(filter.Left);
			AppendCompareOperator(filter);
			AppendParameter(filter.Right);
			CloseParentesis();
		}
示例#2
0
        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;
        }