src/Misc/EFTools/EntityDesignModel/Commands/DeletePropertyCommand.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)
        {
            SaveDeletedInformation();
            if (Property.IsEntityTypeProperty
                && Property.IsKeyProperty)
            {
                var setKey = new SetKeyPropertyCommand(Property, false, true);
                CommandProcessor.InvokeSingleCommand(cpc, setKey);
            }
            base.PreInvoke(cpc);
        }
protected override void PreInvoke ( CommandProcessorContext cpc ) { SaveDeletedInformation ( ) ; if ( Property . IsEntityTypeProperty && Property . IsKeyProperty ) { var setKey = new SetKeyPropertyCommand ( Property , false , true ) ; CommandProcessor . InvokeSingleCommand ( cpc , setKey ) ; } 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
// Save off the deleted entity type name and property name. We do this // here as well just in case this is a late-bound command. // Remove PropertyRef in Key for this property // Only invoke that for Entity property
cpc
CommandProcessorContext
None