public void AddRelationTarget(string relationName, string targetId) { LexRelationCollection relations = GetOrCreateProperty <LexRelationCollection>(relationName); relations.Relations.Add(new LexRelation(relationName, targetId, this)); }
public IPalasoDataObjectProperty Clone() { var clone = new LexRelationCollection(); clone._relations = new List <LexRelation>(_relations); return(clone); }
public bool Equals(LexRelationCollection other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (!_relations.SequenceEqual(other._relations)) { return(false); } return(true); }