diff --git a/src/Utils/Extensions/Masa.Utils.Extensions.Expressions/ExpressionExtensions.cs b/src/Utils/Extensions/Masa.Utils.Extensions.Expressions/ExpressionExtensions.cs index f7d0c888d..859dbff34 100644 --- a/src/Utils/Extensions/Masa.Utils.Extensions.Expressions/ExpressionExtensions.cs +++ b/src/Utils/Extensions/Masa.Utils.Extensions.Expressions/ExpressionExtensions.cs @@ -7,26 +7,26 @@ public static class ExpressionExtensions { public static Expression> And(this Expression> first, Expression> second) { - return first.Compose(second, Expression.And); + return first.Compose(second, Expression.AndAlso); } public static Expression> And(this Expression> first, bool isCompose, Expression>? second) { if (isCompose && second != null) - return first.Compose(second, Expression.And); + return first.Compose(second, Expression.AndAlso); return first; } public static Expression> Or(this Expression> first, Expression> second) { - return first.Compose(second, Expression.Or); + return first.Compose(second, Expression.OrElse); } public static Expression> Or(this Expression> first, bool isCompose, Expression>? second) { if (isCompose && second != null) - return first.Compose(second, Expression.Or); + return first.Compose(second, Expression.OrElse); return first; }