src/Misc/EFTools/EntityDesignModel/Commands/DeleteComplexTypeCommand.cs
/// <summary>
///     We override this method to do some specialized processing of FunctionImport antiDeps
/// </summary>
/// <param name="cpc"></param>
We override this method to do some specialized processing of FunctionImport antiDeps
We override this method to do some specialized processing of FunctionImport antiDeps
protected override void RemoveAntiDeps(CommandProcessorContext cpc)
        {
            var cModel = EFElement.RuntimeModelRoot() as ConceptualEntityModel;
            if (cModel != null)
            {
                foreach (var fi in EFElement.GetAntiDependenciesOfType<FunctionImport>())
                {
                    CommandProcessor.InvokeSingleCommand(
                        cpc, new ChangeFunctionImportCommand(
                            cModel.FirstEntityContainer as ConceptualEntityContainer,
                            fi, fi.Function, fi.DisplayName, fi.IsComposable.Value, true,
                            Resources.NoneDisplayValueUsedForUX));
                }
            }
            base.RemoveAntiDeps(cpc);
        }
protected override void RemoveAntiDeps ( CommandProcessorContext cpc ) { var cModel = EFElement . RuntimeModelRoot ( ) as ConceptualEntityModel ; if ( cModel != null ) { foreach ( var fi in EFElement . GetAntiDependenciesOfType < FunctionImport > ( ) ) { CommandProcessor . InvokeSingleCommand ( cpc , new ChangeFunctionImportCommand ( cModel . FirstEntityContainer as ConceptualEntityContainer , fi , fi . Function , fi . DisplayName , fi . IsComposable . Value , true , Resources . NoneDisplayValueUsedForUX ) ) ; } } base . RemoveAntiDeps ( cpc ) ; }
We override this method to do some specialized processing of FunctionImport antiDeps
We override this method to do some specialized processing of FunctionImport antiDeps
// If there is a FunctionImport which returns a complex type, set the FunctionImport return type to null. // process the remaining antiDeps normally
cpc
CommandProcessorContext
None