Browse Source

-

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

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

@ -27,9 +27,12 @@ namespace OrmTest
private static void ConfiQuery()
{
var db = GetInstance();
db.ConfigQuery.SetTable<Order>(it=>it.Id ,it=>it.Name,"01",it=>it.Id>1);
if (!db.ConfigQuery.Any())
{
db.ConfigQuery.SetTable<Order>(it => it.Id, it => it.Name, "01", it => it.Id > 1);
db.ConfigQuery.SetTable<Order>(it => it.Id, it => it.Name, "02", it => it.Id > 2);
db.ConfigQuery.SetTable<Order>(it => it.Id, it => it.Name,null);
db.ConfigQuery.SetTable<Order>(it => it.Id, it => it.Name, null);
}
var list = db.Queryable<OrderItem>().Select(it => new OrderItem
{
ItemId = it.ItemId.SelectAll(),

Loading…
Cancel
Save