示例#1
0
 public FilterSpec SetPredicate(FilterPredicate predicate)
 {
     return(new FilterSpec(this)
     {
         Predicate = predicate
     });
 }
示例#2
0
        // ReSharper disable NonLocalizedString
        public static FilterSpec ReadXml(XmlReader reader)
        {
            var filterSpec = new FilterSpec
            {
                Column    = reader.GetAttribute("column"),
                Predicate = FilterPredicate.ReadXml(reader),
            };
            bool empty = reader.IsEmptyElement;

            reader.ReadElementString("filter");
            if (!empty)
            {
                reader.ReadEndElement();
            }
            return(filterSpec);
        }
示例#3
0
 protected bool Equals(FilterPredicate other)
 {
     return(Equals(FilterOperation, other.FilterOperation) && string.Equals(InvariantOperandText, other.InvariantOperandText));
 }
示例#4
0
 public FilterSpec(PropertyPath propertyPath, FilterPredicate predicate)
 {
     Column    = propertyPath.ToString();
     Predicate = predicate;
 }