sdk/dotnet/src/Microsoft.Datasync.Client/Query/Linq/FilterBuildingExpressionVisitor.cs
/// <summary>
/// Translate an expression tree into a compiled OData query.
/// </summary>
/// <param name="expression">The expression tree to translate</param>
/// <param name="contractResolver">The contract resolvers to use to determine property names from members used with expressions.</param>
/// <returns>An OData <see cref="QueryNode"/></returns>
Translate an expression tree into a compiled OData query.
Translate an expression tree into a compiled OData query .
internal static QueryNode Compile(Expression expression, DatasyncContractResolver contractResolver)
        {
            var visitor = new FilterBuildingExpressionVisitor(contractResolver);
            visitor.Visit(expression);
            return visitor.FilterExpression.FirstOrDefault();
        }
internal static QueryNode Compile ( Expression expression , DatasyncContractResolver contractResolver ) { var visitor = new FilterBuildingExpressionVisitor ( contractResolver ) ; visitor . Visit ( expression ) ; return visitor . FilterExpression . FirstOrDefault ( ) ; }
Translate an expression tree into a compiled OData query.
Translate an expression tree into a compiled OData query .
None
expression
Expression
The expression tree to translate
The expression tree to translate
contractResolver
DatasyncContractResolver
The contract resolvers to use to determine property names from members used with expressions.
The contract resolvers to use to determine property names from members used with expressions .