From 98844f2b975ad516850a266e7ec70537c0178ac8 Mon Sep 17 00:00:00 2001 From: IGeekFan Date: Mon, 15 Nov 2021 09:49:32 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=87=BD?= =?UTF-8?q?=E6=95=B0=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 表达式函数.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/表达式函数.md b/表达式函数.md index 4558c17..06db0b0 100644 --- a/表达式函数.md +++ b/表达式函数.md @@ -5,14 +5,14 @@ 示例 ```csharp -Expression> where = a => a.id == Guid.Empty; +Expression> where = null; where = where.And(b => b.num > 0); where = where.Or(b => b.num > 0); ``` 动态拼接``Or``,通过``Or``扩展方法动态拼接``Lambda``表达式 ```csharp -Expression> where = a => null; +Expression> where = null; if (xxx) { where = where.Or(b => b.num > 0);