This commit is contained in:
sunkaixuan
2018-10-14 13:13:41 +08:00
parent d8edbfe861
commit a82aebc243

View File

@@ -22,7 +22,7 @@ namespace OrmTest.Demo
.Mapper((it, cache) =>
{
var allSchools = cache.GetListByPrimaryKeys<School>(i => i.SchoolId);//inViewModelStudent3[0].SchoolId , ViewModelStudent3[1].SchoolId...
var allSchools = cache.GetListByPrimaryKeys<School>(vmodel => vmodel.SchoolId);//inViewModelStudent3[0].SchoolId , ViewModelStudent3[1].SchoolId...
//Equal to the following writing.
//var allSchools2= cache.Get(list =>