public TagQuery Add(Tag tag) { var tagQuery = new TagQuery(this.model, tag); tagQuery.EntityAdded = this.OnEntityAdded; tagQuery.EntityRemoved = this.OnEntityRemoved; tagQuery.RelationshipAdded = this.OnRelationshipAdded; tagQuery.RelationshipRemoved = this.OnRelationshipRemoved; this.tagQueries.Add(tagQuery); tagQuery.StartQuery(); return(tagQuery); }
public void Remove(TagQuery tagQuery) { tagQuery.StopQuery(); this.tagQueries.Remove(tagQuery); }