private static void GatherScalarsFromComplexProperty(EntityInfo info, ComplexProperty complexProperty) { foreach (var sp in complexProperty.ScalarProperties()) { info.NonKeyScalars.Add(sp); } foreach (var cp in complexProperty.ComplexProperties()) { GatherScalarsFromComplexProperty(info, cp); } }
private void PreserveComplexPropertyMapping( CommandProcessorContext cpc, ComplexProperty complexPropertyMapping, ComplexConceptualProperty createdComplexTypeProperty) { // walk the Properties tree foreach (var sp in complexPropertyMapping.ScalarProperties()) { PreserveScalarPropertyMapping(cpc, sp, createdComplexTypeProperty); } foreach (var cp in complexPropertyMapping.ComplexProperties()) { PreserveComplexPropertyMapping(cpc, cp, createdComplexTypeProperty); } }