public void Load(XmlElement source) { Sanity.Enforce <ArgumentException>( source.LocalName == nameof(FetchRequest), $"Element must be named {nameof(FetchRequest)}"); _predicates.Clear(); foreach (XmlElement element in source.SelectNodes($"Predicates/{nameof(FetchPredicate)}")) { var predicate = new FetchPredicate(); predicate.Load(element); _predicates.Add(predicate); } }
public void RemovePredicate(FetchPredicate predicate) { _predicates.Remove(predicate); }
public void AddPredicate(FetchPredicate predicate) { _predicates.Add(predicate); }