mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
-
This commit is contained in:
@@ -22,7 +22,8 @@ namespace OrmTest.Demo
|
|||||||
.Mapper((it, cache) =>
|
.Mapper((it, cache) =>
|
||||||
{
|
{
|
||||||
|
|
||||||
var allSchools = cache.GetListByPrimaryKeys<School>(vmodel => vmodel.SchoolId);//in(ViewModelStudent3[0].SchoolId , ViewModelStudent3[1].SchoolId...)
|
var allSchools = cache.GetListByPrimaryKeys<School>(vmodel => vmodel.SchoolId);
|
||||||
|
//sql select shool where id (in(ViewModelStudent3[0].SchoolId , ViewModelStudent3[1].SchoolId...)
|
||||||
|
|
||||||
//Equal to allSchools
|
//Equal to allSchools
|
||||||
//var allSchools2= cache.Get(list =>
|
//var allSchools2= cache.Get(list =>
|
||||||
|
Reference in New Issue
Block a user