diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs index 316c9a042..c98623a1f 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs @@ -210,6 +210,22 @@ namespace OrmTest { throw new Exception("unit error"); } + + var listxxx = db.Queryable() + .Includes(it => it.RoomList) + //.LeftJoin((x, y) => (x.SchoolId == y.SchoolId)) + //.LeftJoin((x, y, z) => y.SchoolId == y.SchoolId) + .Select(x => new SchoolA() + { + SchoolId = x.SchoolId, + + RoomList = x.RoomList + }, true) + .MergeTable().Clone().ToList(); + if (!listxxx.First().RoomList.Any()) + { + throw new Exception("unit error"); + } } public class UnitView01