src/Misc/EFTools/EntityDesignModel/Commands/UpdateConceptualAndMappingModelsCommand.cs
/// <summary>
///     For the passed in DatabaseObject, construct the set of
///     columns which are new in the temp artifact compared to
///     the existing model and the S-side properties (in the
///     temp artifact) to which these map.
/// </summary>
For the passed in DatabaseObject, construct the set of
columns which are new in the temp artifact compared to
the existing model and the S-side properties (in the
temp artifact) to which these map.
For the passed in DatabaseObject construct the set of columns which are new in the temp artifact compared to the existing model and the S - side properties ( in the temp artifact ) to which these map .
private void FindNewProperties(DatabaseObject dbObj, out HashSet<Property> newProperties)
        {
            newProperties = new HashSet<Property>();
            var existingColumnNamesForDbObj =
                _preExistingModel.GetColumnsForDatabaseObject(dbObj);
            var tempArtifactPropertiesForDbObj =
                _modelRepresentingDatabase.GetPropertiesForDatabaseObject(dbObj);
            foreach (var tempArtifactColumn in tempArtifactPropertiesForDbObj)
            {
                var tempArtifactColumnName = tempArtifactColumn.LocalName.Value;
                Debug.Assert(null != tempArtifactColumnName, "Property " + tempArtifactColumn.ToPrettyString() + "has null LocalName");
                if (null != tempArtifactColumnName
                    && !existingColumnNamesForDbObj.Contains(tempArtifactColumnName))
                {
                    newProperties.Add(tempArtifactColumn);
                }
            }
        }
private void FindNewProperties ( DatabaseObject dbObj , out HashSet < Property > newProperties ) { newProperties = new HashSet < Property > ( ) ; var existingColumnNamesForDbObj = _preExistingModel . GetColumnsForDatabaseObject ( dbObj ) ; var tempArtifactPropertiesForDbObj = _modelRepresentingDatabase . GetPropertiesForDatabaseObject ( dbObj ) ; foreach ( var tempArtifactColumn in tempArtifactPropertiesForDbObj ) { var tempArtifactColumnName = tempArtifactColumn . LocalName . Value ; Debug . Assert ( null != tempArtifactColumnName , " " + tempArtifactColumn . ToPrettyString ( ) + " " ) ; if ( null != tempArtifactColumnName && ! existingColumnNamesForDbObj . Contains ( tempArtifactColumnName ) ) { newProperties . Add ( tempArtifactColumn ) ; } } }
For the passed in DatabaseObject, construct the set of
columns which are new in the temp artifact compared to
the existing model and the S-side properties (in the
temp artifact) to which these map.
For the passed in DatabaseObject construct the set of columns which are new in the temp artifact compared to the existing model and the S - side properties ( in the temp artifact ) to which these map .
dbObj
DatabaseObject
HashSet<Property>
out