System.Data.XmlDataInferenceLoader.InferRepeatedElement C# (CSharp) Method

InferRepeatedElement() private method

private InferRepeatedElement ( TableMapping parentTable, XmlElement el ) : void
parentTable TableMapping
el System.Xml.XmlElement
return void
		private void InferRepeatedElement (TableMapping parentTable, XmlElement el)
		{
			string localName = XmlHelper.Decode (el.LocalName);
			// FIXME: can be checked later
			CheckExtraneousElementColumn (parentTable, el);
			TableMapping table = GetMappedTable (parentTable, localName, el.NamespaceURI);

			// If the mapping is actually complex type (not simple
			// repeatable), then ignore it.
			if (table.Elements.Count > 0)
				return;

			// If simple column already exists, do nothing
			if (table.SimpleContent != null)
				return;

			GetMappedColumn (table, localName + "_Column", el.Prefix, el.NamespaceURI, MappingType.SimpleContent, null);
		}