From 8aedd7df0678d873d1f734012b960548e60396b2 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 2 Nov 2022 11:24:58 +0800 Subject: [PATCH] Add unit test --- Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs b/Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs index 249d803c9..5505419c6 100644 --- a/Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs +++ b/Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs @@ -55,13 +55,9 @@ namespace OrmTest PgSqlIsAutoToLowerCodeFirst=false }; db.CodeFirst.InitTables(); - var list=db.Queryable().LeftJoin((X1, Y1) => - X1.Id == Y1.Id) - .Where(X1=>X1.Id==1) - .Select(X1=>new { - x1=X1.Id, - x2=X1.Name - }).ToList(); + var list=db.Queryable((X1,Y1)=>new JoinQueryInfos( + JoinType.Left,X1.Id==Y1.Id + ) ).ToList(); } public class UpperOrder {