From f75ce1d5446b92b0375e467bd5e683419a6a6e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E7=B3=96=E7=BD=91?= <610262374@qq.com> Date: Sun, 10 Oct 2021 23:25:48 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8e3e7f492..e8580647f 100644 --- a/README.md +++ b/README.md @@ -136,14 +136,14 @@ public static SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig() tran.CommitTran();//这个提交不能漏掉 } ``` -### Feature6 : Query Filter +### Feature6 : Query filter ```cs //set Filter -db.QueryFilter.Add(new TableFilterItem(it => it.Name.Contains("a"))); //为Order表置全局条件 +db.QueryFilter.Add(new TableFilterItem(it => it.Name.Contains("a"))); db.Queryable().ToList(); -//SELECT [Id],[Name],[Price],[CreateTime],[CustomId] FROM [Order] WHERE ([Name] like '%'+@MethodConst0+'%') +//SELECT [Id],[Name],[Price],[CreateTime],[CustomId] FROM [Order] WHERE ([Name] like '%'+@MethodConst0+'%') db.Queryable((i, o) => i.OrderId == o.Id) .Where(i => i.OrderId != 0)