diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UOneManyMany6.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UOneManyMany6.cs index 95812a796..5023ce0c5 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UOneManyMany6.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UOneManyMany6.cs @@ -104,6 +104,22 @@ namespace OrmTest }) .ToList(); + + + var list6 = db.Queryable() + .Includes(x => x.school_001, x => x.rooms) + .Includes(x => x.books) + .LeftJoin((x, y) => true) + .Select((x, y) => new + { + SchoolId = x.SchoolId, + books = x.books.Select(it=>new Order() { Name=it.Name } ).ToList(), + bookFirst = x.books.Select(it => new Order() { Name = it.Name } ).FirstOrDefault(), + school_001 = x.school_001, + Name = y.Name + }) + .ToList(); + }