src/Shared/EntityFramework/Core/Mapping/Update/Internal/Propagator.Evaluator.cs
// <summary>
// Converts a (nullable) bool to an expression.
// </summary>
// <param name="booleanValue"> Result </param>
// <param name="inputs"> Inputs contributing to the result </param>
// <returns> DbExpression </returns>
Converts a (nullable) bool to an expression.
Converts a ( nullable ) bool to an expression .
private static PropagatorResult ConvertBoolToResult(bool? booleanValue, params PropagatorResult[] inputs)
            {
                object result;
                if (booleanValue.HasValue)
                {
                    result = booleanValue.Value;
                    ;
                }
                else
                {
                    result = null;
                }
                var flags = PropagateUnknownAndPreserveFlags(null, inputs);
                return PropagatorResult.CreateSimpleValue(flags, result);
            }
private static PropagatorResult ConvertBoolToResult ( bool ? booleanValue , params PropagatorResult [ ] inputs ) { object result ; if ( booleanValue . HasValue ) { result = booleanValue . Value ; ; } else { result = null ; } var flags = PropagateUnknownAndPreserveFlags ( null , inputs ) ; return PropagatorResult . CreateSimpleValue ( flags , result ) ; }
Converts a (nullable) bool to an expression.
Converts a ( nullable ) bool to an expression .
None
booleanValue
bool?
None
inputs
Inputs contributing to the result
Inputs contributing to the result