Exemple #1
0
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == EntityTypeShape.ElementName)
     {
         var shape = new EntityTypeShape(this, elem);
         shape.Parse(unprocessedElements);
         _entityTypeShapes.Add(shape);
     }
     else if (elem.Name.LocalName == AssociationConnector.ElementName)
     {
         var associationConnector = new AssociationConnector(this, elem);
         associationConnector.Parse(unprocessedElements);
         _associationConnectors.Add(associationConnector);
     }
     else if (elem.Name.LocalName == InheritanceConnector.ElementName)
     {
         var inheritanceConnector = new InheritanceConnector(this, elem);
         inheritanceConnector.Parse(unprocessedElements);
         _inheritanceConnectors.Add(inheritanceConnector);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
Exemple #2
0
 internal void AddEntityTypeShape(EntityTypeShape shape)
 {
     _entityTypeShapes.Add(shape);
 }