Skip to content

Commit

Permalink
update based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ElizabethOkerio committed Sep 5, 2023
1 parent dacf924 commit 4369f21
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,7 @@ private static Expression RemoveNonStructucalProperties(QueryBinderContext conte
}
else if (isPropertyNullable)
{
propertyValue = Expression.Condition(
test: Expression.Equal(propertyValue, Expression.Constant(value: null)),
ifTrue: Expression.Constant(value: null, type: nullablePropertyType),
ifFalse: nullablePropertyValue);
propertyValue = nullablePropertyValue;
}

bindings.Add(Expression.Bind(prop, propertyValue));
Expand Down

0 comments on commit 4369f21

Please sign in to comment.