Browse Source

Update demo

pull/1/MERGE
sunkaixuna 4 years ago
parent
commit
a4330a0399
  1. 8
      Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

8
Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

@ -94,6 +94,14 @@ namespace OrmTest
var test03 = db.Queryable<Order>().Take(1).ToList();
var dp = DateTime.Now;
var test05 = db.Queryable<Order>().Where(it => it.CreateTime.Month== dp.Month).ToList();
var test06 = db.Queryable<Order>()
.ToPivotTable(it => it.Id, it => it.Name, it => it.Sum(x => x.Price));
var test07 = db.Queryable<Order>()
.ToPivotList(it => it.Id, it => it.Name, it => it.Sum(x => x.Price));
var test08 = db.Queryable<Order>()
.ToPivotJson(it => it.Id, it => it.Name, it => it.Sum(x => x.Price));
Console.WriteLine("#### Examples End ####");
}

Loading…
Cancel
Save