src/EFTools/EntityDesign/VisualStudio/Package/ConnectionManager.cs
/// <summary>
///     If the user changes the entity container name property we just take note of the old entity container name,
///     storing it safely in the connection manager so when we are ready to commit the change we will know what connection string
///     to change based on the old name.
/// </summary>
If the user changes the entity container name property we just take note of the old entity container name,
storing it safely in the connection manager so when we are ready to commit the change we will know what connection string
to change based on the old name.
If the user changes the entity container name property we just take note of the old entity container name storing it safely in the connection manager so when we are ready to commit the change we will know what connection string to change based on the old name .
private int OnAfterEntityContainerNameChange(object sender, ModelChangeEventArgs args)
        {
            if (_staleEntityContainerName == null)
            {
                _staleEntityContainerName = args.OldEntityContainerName;
            }
            return VSConstants.S_OK;
        }
private int OnAfterEntityContainerNameChange ( object sender , ModelChangeEventArgs args ) { if ( _staleEntityContainerName == null ) { _staleEntityContainerName = args . OldEntityContainerName ; } return VSConstants . S_OK ; }
If the user changes the entity container name property we just take note of the old entity container name,
storing it safely in the connection manager so when we are ready to commit the change we will know what connection string
to change based on the old name.
If the user changes the entity container name property we just take note of the old entity container name storing it safely in the connection manager so when we are ready to commit the change we will know what connection string to change based on the old name .
sender
object
args
ModelChangeEventArgs