Exemplo n.º 1
0
        public void AddRelationTarget(string relationName, string targetId)
        {
            LexRelationCollection relations =
                GetOrCreateProperty <LexRelationCollection>(relationName);

            relations.Relations.Add(new LexRelation(relationName, targetId, this));
        }
Exemplo n.º 2
0
        public IPalasoDataObjectProperty Clone()
        {
            var clone = new LexRelationCollection();

            clone._relations = new List <LexRelation>(_relations);
            return(clone);
        }
Exemplo n.º 3
0
 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);
 }