src/Inflatable/ClassMapper/MappingSource.cs
/// <summary>
/// Returns a <see cref="string"/> that represents this instance.
/// </summary>
/// <returns>A <see cref="string"/> that represents this instance.</returns>
Returns a  that represents this instance.
Returns a that represents this instance .
public override string ToString()
        {
            if (string.IsNullOrEmpty(_ToString))
            {
                var Builder = ObjectPool.Get();
                Builder.AppendLineFormat("Source: {0}", Source.Name);
                foreach (var Mapping in Mappings.Values)
                {
                    Builder.AppendLineFormat("\tMapping: {0}", Mapping)
                        .AppendLine("\t\tIDs:");
                    foreach (var Property in Mapping.IDProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine("\t\tAuto IDs:");
                    foreach (var Property in Mapping.AutoIDProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine("\t\tReferences:");
                    foreach (var Property in Mapping.ReferenceProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine("\t\tMap:");
                    foreach (var Property in Mapping.MapProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine("\t\tMany To Many:");
                    foreach (var Property in Mapping.ManyToManyProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine("\t\tMany To One:");
                    foreach (var Property in Mapping.ManyToOneProperties)
                    {
                        Builder.AppendLineFormat("\t\t\t{0}", Property);
                    }
                    Builder.AppendLine();
                }
                _ToString = Builder.ToString();
                ObjectPool.Return(Builder);
            }
            return _ToString;
        }
public override string ToString ( ) { if ( string . IsNullOrEmpty ( _ToString ) ) { var Builder = ObjectPool . Get ( ) ; Builder . AppendLineFormat ( " " , Source . Name ) ; foreach ( var Mapping in Mappings . Values ) { Builder . AppendLineFormat ( " \t " , Mapping ) . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . IDProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . AutoIDProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . ReferenceProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . MapProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . ManyToManyProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( " \t \t " ) ; foreach ( var Property in Mapping . ManyToOneProperties ) { Builder . AppendLineFormat ( " \t \t \t " , Property ) ; } Builder . AppendLine ( ) ; } _ToString = Builder . ToString ( ) ; ObjectPool . Return ( Builder ) ; } return _ToString ; }
Returns a  that represents this instance.
Returns a that represents this instance .
A  that represents this instance.
A that represents this instance .