Exemple #1
0
        /// <inheritdoc />
        public override IFilterTree BuildFilterTree()
        {
            var attributeName     = FilterHelper.GetAttributeName(_Attribute);
            var operatorTokenType = FilterHelper.GetOperatorTokenType(_Operation);

            var valueTree = FilterTree.MakeValueList(_Values.ToArray());

            return(FilterHelper.MakeComparison(operatorTokenType, attributeName, valueTree));
        }
Exemple #2
0
        /// <inheritdoc />
        public override IFilterTree BuildFilterTree()
        {
            var valuesStrings = new List <string>();

            foreach (var dateTime in _Values)
            {
                string valueString = null;
                if (dateTime.HasValue)
                {
                    valueString = XmlConvert.ToString(dateTime.Value, XmlDateTimeSerializationMode.RoundtripKind);
                }

                valuesStrings.Add(valueString);
            }

            var attributeName     = FilterHelper.GetAttributeName(_Attribute);
            var operatorTokenType = FilterHelper.GetOperatorTokenType(_Operation);

            var valueTree = FilterTree.MakeValueList(valuesStrings.ToArray());

            return(FilterHelper.MakeComparison(operatorTokenType, attributeName, valueTree));
        }