src/Misc/EFTools/EntityDesignModel/Commands/DeleteEntityTypeShapeCommand.cs
/// <summary>
///     We override this method to do some specialized processing of removing connectors associated with the shape.
/// </summary>
/// <param name="cpc"></param>
We override this method to do some specialized processing of removing connectors associated with the shape.
We override this method to do some specialized processing of removing connectors associated with the shape .
protected override void RemoveAntiDeps(CommandProcessorContext cpc)
        {
            var associationConnectors = ModelHelper.GetListOfAssociationConnectorsForEntityTypeShape(EntityTypeShape).ToArray();
            foreach (var associationConnector in associationConnectors)
            {
                DeleteEFElementCommand.DeleteInTransaction(cpc, associationConnector);
            }
            var inheritanceConnectors = ModelHelper.GetListOfInheritanceConnectorsForEntityTypeShape(EntityTypeShape).ToArray();
            foreach (var inheritanceConnector in inheritanceConnectors)
            {
                DeleteEFElementCommand.DeleteInTransaction(cpc, inheritanceConnector);
            }
            base.RemoveAntiDeps(cpc);
        }
protected override void RemoveAntiDeps ( CommandProcessorContext cpc ) { var associationConnectors = ModelHelper . GetListOfAssociationConnectorsForEntityTypeShape ( EntityTypeShape ) . ToArray ( ) ; foreach ( var associationConnector in associationConnectors ) { DeleteEFElementCommand . DeleteInTransaction ( cpc , associationConnector ) ; } var inheritanceConnectors = ModelHelper . GetListOfInheritanceConnectorsForEntityTypeShape ( EntityTypeShape ) . ToArray ( ) ; foreach ( var inheritanceConnector in inheritanceConnectors ) { DeleteEFElementCommand . DeleteInTransaction ( cpc , inheritanceConnector ) ; } base . RemoveAntiDeps ( cpc ) ; }
We override this method to do some specialized processing of removing connectors associated with the shape.
We override this method to do some specialized processing of removing connectors associated with the shape .
// process the remaining antiDeps normally
cpc
CommandProcessorContext
None