From 68c2fadfe20a4820cca96486f68f5613335af63b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 17 Jul 2023 15:21:01 +0800 Subject: [PATCH] Update unit test --- Src/Asp.Net/SqlServerTest/UnitTest/UnitOneToOneN2.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UnitOneToOneN2.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UnitOneToOneN2.cs index ea62e7067..4301b3849 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UnitOneToOneN2.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UnitOneToOneN2.cs @@ -80,14 +80,14 @@ namespace OrmTest var result3 = db.Queryable( (co, pr, ci) => co.ProvinceId == pr.ProvinceId && ci.ProvinceId == ci.ProvinceId) - .Select((co, pr, ci) => new Country() + .Select((co, pr, ci) => new { CountryId = co.CountryId, ProvinceId = co.ProvinceId, - Province = new Province() + Province2= new { ProvinceId = pr.ProvinceId, - City = new City() + City2 = new { ProvinceId = ci.ProvinceId, CityId = ci.CityId, @@ -97,8 +97,8 @@ namespace OrmTest .ToList(); - if (result3.First().Province.City.ProvinceId != 1 || - result3.Last().Province.City.ProvinceId != 2) + if (result3.First().Province2.City2.ProvinceId != 1 || + result3.Last().Province2.City2.ProvinceId != 2) { throw new Exception("unit error"); }