sdk/dotnet/src/Microsoft.Datasync.Client/Query/Linq/QueryTranslator.cs
/// <summary>
/// Translate an expression tree into a compiled query description that can be
/// turned into whatever form is required.
/// </summary>
/// <returns>A compiled query description</returns>
Translate an expression tree into a compiled query description that can be
turned into whatever form is required.
Translate an expression tree into a compiled query description that can be turned into whatever form is required .
public QueryDescription Translate()
        {
            var expression = Query.Query.Expression.PartiallyEvaluate();
            if (expression is MethodCallExpression methodCall)
            {
                VisitMethodCall(methodCall);
            }
            QueryDescription.ProjectionArgumentType ??= typeof(T);
            return QueryDescription;
        }
public QueryDescription Translate ( ) { var expression = Query . Query . Expression . PartiallyEvaluate ( ) ; if ( expression is MethodCallExpression methodCall ) { VisitMethodCall ( methodCall ) ; } QueryDescription . ProjectionArgumentType ??= typeof ( T ) ; return QueryDescription ; }
Translate an expression tree into a compiled query description that can be
turned into whatever form is required.
Translate an expression tree into a compiled query description that can be turned into whatever form is required .
// Evaluate any independent subexpressions so we end up with a tree full of // constants or things that depend directly on our values. // Build a new query from the expression tree. // Set the projection type if there was no projection in the query. // And return the query description
A compiled query description
A compiled query description