Ejemplo n.º 1
0
        internal string TraceString()
        {
            var sb = new StringBuilder("[AssociationSummary");

            sb.Append(
                " " +
                EFToolsTraceUtils.FormatNamedDictionary(
                    "associationToAssociationIdentity", _associationToAssociationIdentity,
                    delegate(Association assoc) { return(assoc.NormalizedNameExternal); },
                    delegate(AssociationIdentity assocId) { return(assocId.TraceString()); }));

            sb.Append(
                " " +
                EFToolsTraceUtils.FormatNamedDictionary(
                    "dependentEndTablesToAssociationIdentities", _dependentEndTablesToAssociationIdentities,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(List <AssociationIdentity> assocIdList)
            {
                return(EFToolsTraceUtils.FormatEnumerable(
                           assocIdList, delegate(AssociationIdentity assocId) { return "  " + assocId.TraceString(); }));
            },
                    true,
                    "  "
                    ));

            sb.Append("]");

            return(sb.ToString());
        }
Ejemplo n.º 2
0
        internal string TraceString()
        {
            var sb = new StringBuilder("[" + typeof(UpdatedModelSummary).Name);

            sb.AppendLine(" artifactUri=" + (_artifact == null ? "null" : _artifact.Uri.ToString()));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "cEntityTypeToEntityTypeIdentity", _cEntityTypeToEntityTypeIdentity,
                    delegate(EntityType et) { return(et.NormalizedNameExternal); },
                    delegate(EntityTypeIdentity etId) { return(etId.TraceString()); },
                    true,
                    " "
                    ));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "databaseObjectColumns", _databaseObjectColumns,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(HashSet <Property> hashOfProperties)
            {
                return(EFToolsTraceUtils.FormatEnumerable(
                           hashOfProperties, delegate(Property prop) { return prop.NormalizedNameExternal; }));
            },
                    true,
                    " "
                    ));

            sb.AppendLine(" associationSummary=" + (_associationSummary == null ? "null" : _associationSummary.TraceString()));

            sb.Append("]");

            return(sb.ToString());
        }
Ejemplo n.º 3
0
        internal string TraceString()
        {
            var sb = new StringBuilder("[ExistingModelSummary");

            sb.AppendLine(" artifactUri=" + (_artifact == null ? "null" : _artifact.Uri.ToString()));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "cEntityTypeNameToEntityTypeIdentity", _cEntityTypeNameToEntityTypeIdentity,
                    delegate(Symbol symbol) { return(symbol.ToExternalString()); },
                    delegate(EntityTypeIdentity etId) { return(etId.TraceString()); },
                    true,
                    " "
                    ));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "allTablesAndViews", _allTablesAndViews,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(string s) { return(s); },
                    true,
                    " "
                    ));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "databaseObjectColumns", _databaseObjectColumns,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(HashSet <string> hashOfColumnNames)
                    { return(EFToolsTraceUtils.FormatEnumerable(hashOfColumnNames, delegate(string s) { return s; })); },
                    true,
                    " "
                    ));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "allFunctions", _allFunctions,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(string s) { return(s); },
                    true,
                    " "
                    ));

            sb.AppendLine(" associationSummary=" + (_associationSummary == null ? "null" : _associationSummary.TraceString()));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "cAncestorTypeDatabaseObjectMap", _cAncestorTypeDatabaseObjectMap,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(HashSet <DatabaseObject> hashOfBaseTypeDatabaseObjects)
            {
                return(EFToolsTraceUtils.FormatEnumerable(
                           hashOfBaseTypeDatabaseObjects, delegate(DatabaseObject dbObj) { return dbObj.ToString(); }));
            },
                    true,
                    " "
                    ));

            sb.Append(
                " " + EFToolsTraceUtils.FormatNamedDictionary(
                    "databaseObjectToCEntityTypeNamesMap", _databaseObjectToCEntityTypeNamesMap,
                    delegate(DatabaseObject dbObj) { return(dbObj.ToString()); },
                    delegate(HashSet <Symbol> hashOfNormalizedNames)
            {
                return(EFToolsTraceUtils.FormatEnumerable(
                           hashOfNormalizedNames, delegate(Symbol symbol) { return symbol.ToExternalString(); }));
            },
                    true,
                    " "
                    ));

            sb.Append("]");

            return(sb.ToString());
        }