sdk/dotnet/src/Microsoft.Datasync.Client/Query/OData/QueryDescriptionExtensions.cs
/// <summary>
/// Convert this ordering node into an OData string representation.
/// </summary>
/// <returns>The OData string</returns>
Convert this ordering node into an OData string representation.
Convert this ordering node into an OData string representation .
public static string ToODataString(this OrderByNode node)
        {
            string field = ODataExpressionVisitor.ToODataString(node.Expression);
            string direction = node.Direction == OrderByDirection.Ascending ? "" : " desc";
            return $"{field}{direction}";
        }
public static string ToODataString ( this OrderByNode node ) { string field = ODataExpressionVisitor . ToODataString ( node . Expression ) ; string direction = node . Direction == OrderByDirection . Ascending ? " " : " " ; return $" { field } { direction } " ; }
Convert this ordering node into an OData string representation.
Convert this ordering node into an OData string representation .
The OData string
The OData string
OrderByNode
this