Browse Source

Update demo

pull/19/head
sunkaixuan 3 years ago
parent
commit
d3548f93d4
  1. 2
      Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

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

@ -360,7 +360,7 @@ namespace OrmTest
}); });
itemModel.Items = allItems.Where(it => it.OrderId==itemModel.Id).ToList();//Every time it's executed itemModel.Items = allItems.Where(it => it.OrderId==itemModel.Id).ToList();//Every time it's executed
}).ToList(); }).ToList();
db.CodeFirst.InitTables<Tree>();
//无限级高性能导航映射 //无限级高性能导航映射
var treeRoot=db.Queryable<Tree>().Where(it => it.Id == 1).ToList(); var treeRoot=db.Queryable<Tree>().Where(it => it.Id == 1).ToList();
db.ThenMapper(treeRoot, item => db.ThenMapper(treeRoot, item =>

Loading…
Cancel
Save