From 336629b477d7f041bbcfe98b52898e2207a33c29 Mon Sep 17 00:00:00 2001 From: 28810 <28810@YEXIANGQIN> Date: Sun, 18 Aug 2019 21:13:57 +0800 Subject: [PATCH] update --- 多表查询.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/多表查询.md b/多表查询.md index ecc2cbc..efe62bc 100644 --- a/多表查询.md +++ b/多表查询.md @@ -114,6 +114,15 @@ sql = select.From((s, b, c) => s //WHERE (a.`Id` = 10 AND c.`Name` = 'xxx') AND (b.`ParentId` = 20) ``` +或者 + +```csharp +sql = fsql.Select() + .Where((a, b, c) => a.Id == 10 && c.Name == "xxxx") + .Where((a, b, c) => b.ParentId == 20) + .ToSql(); +``` + ## 子表 Exists ```csharp var sql2222 = select.Where(a => select.Where(b => b.Id == a.Id).Any()).ToList();