From 0d54cda30a27bd3fd462190a944f2bf98d0aba18 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 8 Jul 2023 20:02:04 +0800 Subject: [PATCH] Add unit test --- Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs index 1928a57b2..0af0e09bf 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs @@ -240,6 +240,12 @@ namespace OrmTest { throw new Exception("unit error"); } + var listxxxx2 = db.Queryable() + .Includes(it => it.RoomList) + .LeftJoin((x, y) => (x.SchoolId == y.SchoolId)) + //.LeftJoin((x, y, z) => y.SchoolId == y.SchoolId) + .Sum(x=>x.SchoolId); + } public class UnitView01