public static string ToTraceString(this IEdmType type)
        {
            EdmUtil.CheckArgumentNull <IEdmType>(type, "type");
            EdmTypeKind typeKind = type.TypeKind;

            switch (typeKind)
            {
            case EdmTypeKind.Row:
            {
                return(((IEdmRowType)type).ToTraceString());
            }

            case EdmTypeKind.Collection:
            {
                return(((IEdmCollectionType)type).ToTraceString());
            }

            case EdmTypeKind.EntityReference:
            {
                return(((IEdmEntityReferenceType)type).ToTraceString());
            }

            default:
            {
                IEdmSchemaType edmSchemaType = type as IEdmSchemaType;
                if (edmSchemaType == null)
                {
                    break;
                }
                return(edmSchemaType.ToTraceString());
            }
            }
            return("UnknownType");
        }
 public static string ToTraceString(this IEdmSchemaType schemaType)
 {
     return(schemaType.ToTraceString());
 }