private void DumpCollection(CollectionColumnMap columnMap, Dump dumper) { if (columnMap.ForeignKeys.Length > 0) { using (new Dump.AutoXml(dumper, "foreignKeys")) this.VisitList <SimpleColumnMap>(columnMap.ForeignKeys, dumper); } if (columnMap.Keys.Length > 0) { using (new Dump.AutoXml(dumper, "keys")) this.VisitList <SimpleColumnMap>(columnMap.Keys, dumper); } using (new Dump.AutoXml(dumper, "element")) columnMap.Element.Accept <Dump>((ColumnMapVisitor <Dump>) this, dumper); }
/// <summary> /// Common CollectionColumnMap code /// </summary> private void DumpCollection(CollectionColumnMap columnMap, Dump dumper) { if (columnMap.ForeignKeys.Length > 0) { using (new AutoXml(dumper, "foreignKeys")) { VisitList(columnMap.ForeignKeys, dumper); } } if (columnMap.Keys.Length > 0) { using (new AutoXml(dumper, "keys")) { VisitList(columnMap.Keys, dumper); } } using (new AutoXml(dumper, "element")) { columnMap.Element.Accept(this, dumper); } }