From a4330a03991beaa5da90db756a2abd965640430e Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Sat, 24 Apr 2021 21:03:48 +0800 Subject: [PATCH] Update demo --- Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs index f08c9f683..c4a407bc4 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs @@ -94,6 +94,14 @@ namespace OrmTest var test03 = db.Queryable().Take(1).ToList(); var dp = DateTime.Now; var test05 = db.Queryable().Where(it => it.CreateTime.Month== dp.Month).ToList(); + var test06 = db.Queryable() + .ToPivotTable(it => it.Id, it => it.Name, it => it.Sum(x => x.Price)); + + var test07 = db.Queryable() + .ToPivotList(it => it.Id, it => it.Name, it => it.Sum(x => x.Price)); + + var test08 = db.Queryable() + .ToPivotJson(it => it.Id, it => it.Name, it => it.Sum(x => x.Price)); Console.WriteLine("#### Examples End ####"); }