diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs index 0c7d73c80..b86698994 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs @@ -54,6 +54,7 @@ namespace OrmTest var list2 = db.Queryable() .Includes(x => x.SchoolA, x => x.RoomList)//2个参数就是 then Include + .Includes(x => x.SchoolA, x => x.TeacherList)//2个参数就是 then Include .Includes(x => x.Books) .Where(x=>x.Books.Any(z=>z.BookId==1)) .Where(x => x.SchoolA.SchoolName == "北大") @@ -197,7 +198,7 @@ namespace OrmTest public string SchoolName { get; set; } [Navigate(NavigateType.OneToMany,nameof(RoomA.SchoolId))] public List RoomList { get; set; } - [SugarColumn(IsIgnore = true)] + [Navigate(NavigateType.OneToMany, nameof(TeacherA.SchoolId))] public List TeacherList { get; set; } } public class TeacherA