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