src/Misc/EFTools/EntityDesign/UI/ViewModels/MappingDetails/MappingEFElement.cs
// <summary>
//     Private helper method to delete a view model item.
// </summary>
// <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>
Private helper method to delete a view model item.
Private helper method to delete a view model item .
private void OnDelete(CommandProcessorContext cpc)
        {
            if (ModelItem != null)
            {
                DeleteModelItem(cpc);
            }
            if (_children != null)
            {
                for (var i = Children.Count - 1; i >= 0; i--)
                {
                    var child = Children[i];
                    child.Delete(cpc);
                }
                _children = null;
            }
            if (Parent != null)
            {
                Parent.OnChildDeleted(this);
            }
        }
private void OnDelete ( CommandProcessorContext cpc ) { if ( ModelItem != null ) { DeleteModelItem ( cpc ) ; } if ( _children != null ) { for ( var i = Children . Count - 1 ; i >= 0 ; i -- ) { var child = Children [ i ] ; child . Delete ( cpc ) ; } _children = null ; } if ( Parent != null ) { Parent . OnChildDeleted ( this ) ; } }
Private helper method to delete a view model item.
Private helper method to delete a view model item .
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