src/Misc/EFTools/EntityDesignModel/Commands/DeleteEnumTypeCommand.cs
/// <summary>
///     We override this method because we need to do some extra things before
///     the normal PreInvoke gets called and our antiDeps are removed
/// </summary>
/// <param name="cpc"></param>
We override this method because we need to do some extra things before
the normal PreInvoke gets called and our antiDeps are removed
We override this method because we need to do some extra things before the normal PreInvoke gets called and our antiDeps are removed
protected override void PreInvoke(CommandProcessorContext cpc)
        {
            foreach (var property in EFElement.GetAntiDependenciesOfType<ConceptualProperty>())
            {
                property.UnbindEnumType();
                ;
                _propertiesToResolve.Add(property);
            }
            base.PreInvoke(cpc);
        }
protected override void PreInvoke ( CommandProcessorContext cpc ) { foreach ( var property in EFElement . GetAntiDependenciesOfType < ConceptualProperty > ( ) ) { property . UnbindEnumType ( ) ; ; _propertiesToResolve . Add ( property ) ; } base . PreInvoke ( cpc ) ; }
We override this method because we need to do some extra things before
the normal PreInvoke gets called and our antiDeps are removed
We override this method because we need to do some extra things before the normal PreInvoke gets called and our antiDeps are removed
// Unbind all ConceptualProperty that reference the enum type so they will not get deleted.
cpc
CommandProcessorContext
None