Ejemplo n.º 1
0
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == FunctionImportEntityTypeMapping.ElementName)
     {
         var etm = new FunctionImportEntityTypeMapping(this, elem);
         _typeMappings.Add(etm);
         etm.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == FunctionImportComplexTypeMapping.ElementName)
     {
         var ctm = new FunctionImportComplexTypeMapping(this, elem);
         _typeMappings.Add(ctm);
         ctm.Parse(unprocessedElements);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
Ejemplo n.º 2
0
 internal override bool ParseSingleElement(ICollection<XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == FunctionImportEntityTypeMapping.ElementName)
     {
         var etm = new FunctionImportEntityTypeMapping(this, elem);
         _typeMappings.Add(etm);
         etm.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == FunctionImportComplexTypeMapping.ElementName)
     {
         var ctm = new FunctionImportComplexTypeMapping(this, elem);
         _typeMappings.Add(ctm);
         ctm.Parse(unprocessedElements);
     }
     else
     {
         return base.ParseSingleElement(unprocessedElements, elem);
     }
     return true;
 }