From 8bba55b30c5d09a9c793a80ebe42d928f462a79f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 10 Jul 2022 13:24:55 +0800 Subject: [PATCH] Add demo --- Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs index 0869c05e6..6e99565fb 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs @@ -169,6 +169,11 @@ namespace OrmTest var test45 = db.Queryable(). Where(it=>it.Price==0?true:it.Name==it.Name) .ToList(); + var num = 3; + var test46 = db.Queryable() + .Where(it=>-it.Id==1) + .Where(it => DateTime.Now.AddDays(-num) ==DateTime.Now.Date) + .ToList(); var dr3 = new Dictionary(); dr3.Add("Id", 0); dr3.Add("Name",null);