コード例 #1
0
        private static string ToTraceString(this IEdmRowType type)
        {
            StringBuilder stringBuilder = new StringBuilder(EdmTypeKind.Row.ToString());

            stringBuilder.Append('(');
            if (type.Properties().Any <IEdmProperty>())
            {
                IEdmProperty edmProperty = type.Properties().Last <IEdmProperty>();
                foreach (IEdmProperty edmProperty1 in type.Properties())
                {
                    if (edmProperty1 == null)
                    {
                        continue;
                    }
                    stringBuilder.Append(edmProperty1.ToTraceString());
                    if (edmProperty1.Equals(edmProperty))
                    {
                        continue;
                    }
                    stringBuilder.Append(", ");
                }
            }
            stringBuilder.Append(')');
            return(stringBuilder.ToString());
        }
コード例 #2
0
        private static string ToTraceString(this IEdmRowType type)
        {
            StringBuilder sb = new StringBuilder(EdmTypeKind.Row.ToString());

            sb.Append('(');
            if (type.Properties().Any())
            {
                IEdmProperty lastProperty = type.Properties().Last();
                foreach (IEdmProperty prop in type.Properties())
                {
                    if (prop != null)
                    {
                        sb.Append(prop.ToTraceString());
                        if (!prop.Equals(lastProperty))
                        {
                            sb.Append(", ");
                        }
                    }
                }
            }

            sb.Append(')');
            return(sb.ToString());
        }