src/Shared/EntityFramework/Core/Mapping/Update/Internal/Propagator.Evaluator.cs
// <summary>
// Utility method determining whether a row matches a predicate.
// </summary>
// <remarks>
// See Walker class for an explanation of this coding pattern.
// </remarks>
// <param name="predicate"> Match criteria. </param>
// <param name="row"> Input row. </param>
// <returns>
// <c>true</c> if the row matches the criteria; <c>false</c> otherwise
// </returns>
Utility method determining whether a row matches a predicate.
Utility method determining whether a row matches a predicate .
internal static bool EvaluatePredicate(DbExpression predicate, PropagatorResult row)
            {
                var evaluator = new Evaluator(row);
                var expressionResult = predicate.Accept(evaluator);
                var result = ConvertResultToBool(expressionResult);
                return result ?? false;
            }
internal static bool EvaluatePredicate ( DbExpression predicate , PropagatorResult row ) { var evaluator = new Evaluator ( row ) ; var expressionResult = predicate . Accept ( evaluator ) ; var result = ConvertResultToBool ( expressionResult ) ; return result ?? false ; }
Utility method determining whether a row matches a predicate.
Utility method determining whether a row matches a predicate .
// unknown --> false at base of predicate
None
predicate
DbExpression
None
row
PropagatorResult
None
remarks
See Walker class for an explanation of this coding pattern.
See Walker class for an explanation of this coding pattern .