Browse Source

Add demo

pull/20/head
sunkaixuan 2 years ago
parent
commit
8bba55b30c
  1. 5
      Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

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

@ -169,6 +169,11 @@ namespace OrmTest
var test45 = db.Queryable<Order>().
Where(it=>it.Price==0?true:it.Name==it.Name)
.ToList();
var num = 3;
var test46 = db.Queryable<Order>()
.Where(it=>-it.Id==1)
.Where(it => DateTime.Now.AddDays(-num) ==DateTime.Now.Date)
.ToList();
var dr3 = new Dictionary<string, object>();
dr3.Add("Id", 0);
dr3.Add("Name",null);

Loading…
Cancel
Save