Ejemplo n.º 1
0
 public bool Remove(IRelationshipEnd end)
 {
     if (!RelationshipEndCollection.IsEndValid(end))
     {
         return(false);
     }
     this.KeysInDefOrder.Remove(end.Name);
     return(this.EndLookup.Remove(end.Name));
 }
Ejemplo n.º 2
0
        public void Add(IRelationshipEnd end)
        {
            SchemaElement end1 = end as SchemaElement;

            if (!RelationshipEndCollection.IsEndValid(end) || !this.ValidateUniqueName(end1, end.Name))
            {
                return;
            }
            this.EndLookup.Add(end.Name, end);
            this.KeysInDefOrder.Add(end.Name);
        }