public FilterSpec SetPredicate(FilterPredicate predicate) { return(new FilterSpec(this) { Predicate = predicate }); }
// 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); }
protected bool Equals(FilterPredicate other) { return(Equals(FilterOperation, other.FilterOperation) && string.Equals(InvariantOperandText, other.InvariantOperandText)); }
public FilterSpec(PropertyPath propertyPath, FilterPredicate predicate) { Column = propertyPath.ToString(); Predicate = predicate; }