src/Misc/EFTools/EntityDesignModel/Integrity/enforceentitysetmappingrules.cs
/// <summary>
///     Loop through our _itemToDelete list and make the calls to ModelController to
///     actually remove the item.
/// </summary>
Loop through our _itemToDelete list and make the calls to ModelController to
actually remove the item.
Loop through our _itemToDelete list and make the calls to ModelController to actually remove the item .
private void CleanUp()
        {
            foreach (var deleteMe in _itemsToDelete)
            {
                var deleteElement = deleteMe as EFElement;
                if (deleteElement != null)
                {
                    DeleteEFElementCommand.DeleteInTransaction(_cpc, deleteElement);
                }
                else
                {
                    Debug.Fail("We are trying to delete a type that we don't handle");
                    deleteMe.Delete();
                }
            }
        }
private void CleanUp ( ) { foreach ( var deleteMe in _itemsToDelete ) { var deleteElement = deleteMe as EFElement ; if ( deleteElement != null ) { DeleteEFElementCommand . DeleteInTransaction ( _cpc , deleteElement ) ; } else { Debug . Fail ( " " ) ; deleteMe . Delete ( ) ; } } }
Loop through our _itemToDelete list and make the calls to ModelController to
actually remove the item.
Loop through our _itemToDelete list and make the calls to ModelController to actually remove the item .