src/Misc/EFTools/EntityDesign/UI/ViewModels/MappingDetails/MappingEFElement.cs
// <summary>
//     Recurses this item's children and calls DeleteModelItem() (not Delete) on them, then calls this on itself.
// </summary>
// <param name="melem"></param>
// <param name="cpc">If 'null' is passed then a cpc and transaction will be created for this call, pass a non-null cpc to include this in a larger transaction</param>
Recurses this item's children and calls DeleteModelItem() (not Delete) on them, then calls this on itself.
Recurses this item ' s children and calls DeleteModelItem () ( not Delete ) on them then calls this on itself .
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1614:ElementParameterDocumentationMustHaveText")]
        private static void DeleteModelItemsRecursive(MappingEFElement melem, CommandProcessorContext cpc)
        {
            foreach (var childMappingEFElement in melem.Children)
            {
                DeleteModelItemsRecursive(childMappingEFElement, cpc);
            }
            if (melem.ModelItem != null
                && melem.IsModelItemDeleted() == false)
            {
                melem.DeleteModelItem(cpc);
            }
        }
[ SuppressMessage ( " " , " " ) ] private static void DeleteModelItemsRecursive ( MappingEFElement melem , CommandProcessorContext cpc ) { foreach ( var childMappingEFElement in melem . Children ) { DeleteModelItemsRecursive ( childMappingEFElement , cpc ) ; } if ( melem . ModelItem != null && melem . IsModelItemDeleted ( ) == false ) { melem . DeleteModelItem ( cpc ) ; } }
Recurses this item's children and calls DeleteModelItem() (not Delete) on them, then calls this on itself.
Recurses this item ' s children and calls DeleteModelItem () ( not Delete ) on them then calls this on itself .
melem
MappingEFElement
None
cpc
CommandProcessorContext
If 'null' is passed then a cpc and transaction will be created for this call, pass a non-null cpc to include this in a larger transaction
If ' null ' is passed then a cpc and transaction will be created for this call pass a non - null cpc to include this in a larger transaction