diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs index 0361fe7d9..65bd792af 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs @@ -117,7 +117,9 @@ namespace OrmTest .Where(x => x.SchoolA.School_Name == "北大") .ToList(); - + var list3_0_1 = db.Queryable() + .Includes(x => x.Books.Where(conditionals).ToList()) + .ToList(); var list3_1 = db.Queryable() .Includes(x => x.Books.MappingField(z=>z.Names,()=>x.Name).ToList()) diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToManyUpdate.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToManyUpdate.cs index dec2c6b01..2aaaaf1cb 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToManyUpdate.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToManyUpdate.cs @@ -44,9 +44,7 @@ namespace OrmTest .Include(it => it.School) .Include(it => it.Room) .ExecuteCommand(); - Console.WriteLine(result); - Console.WriteLine("用例跑完"); - Console.ReadKey(); + } //建类 public class SchoolA111