コード例 #1
0
ファイル: ComplexProperty.cs プロジェクト: dotnet/ef6tools
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == ScalarProperty.ElementName)
     {
         var prop = new ScalarProperty(this, elem);
         _scalarProperties.Add(prop);
         prop.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == ElementName)
     {
         var complexProperty = new ComplexProperty(this, elem);
         _complexProperties.Add(complexProperty);
         complexProperty.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == ComplexTypeMapping.ElementName)
     {
         var complexTypeMapping = new ComplexTypeMapping(this, elem);
         _complexTypeMappings.Add(complexTypeMapping);
         complexTypeMapping.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == Condition.ElementName)
     {
         var cond = new Condition(this, elem);
         _conditions.Add(cond);
         cond.Parse(unprocessedElements);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
コード例 #2
0
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == ScalarProperty.ElementName)
     {
         var sp = new ScalarProperty(this, elem);
         _properties.Add(sp);
         sp.Parse(unprocessedElements);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
コード例 #3
0
 internal override bool ParseSingleElement(ICollection<XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == ScalarProperty.ElementName)
     {
         var sp = new ScalarProperty(this, elem);
         _properties.Add(sp);
         sp.Parse(unprocessedElements);
     }
     else
     {
         return base.ParseSingleElement(unprocessedElements, elem);
     }
     return true;
 }
コード例 #4
0
 internal override bool ParseSingleElement(ICollection<XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == ScalarProperty.ElementName)
     {
         var prop = new ScalarProperty(this, elem);
         _scalarProperties.Add(prop);
         prop.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == ComplexProperty.ElementName)
     {
         var prop = new ComplexProperty(this, elem);
         _complexProperties.Add(prop);
         prop.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == Condition.ElementName)
     {
         var cond = new Condition(this, elem);
         _conditions.Add(cond);
         cond.Parse(unprocessedElements);
     }
     else
     {
         return base.ParseSingleElement(unprocessedElements, elem);
     }
     return true;
 }