Browse Source

Add unit test

pull/25/head
sunkaixuan 2 years ago
parent
commit
8aedd7df06
  1. 10
      Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs

10
Src/Asp.Net/PgSqlTest/UnitTest/UCodeFirst.cs

@ -55,13 +55,9 @@ namespace OrmTest
PgSqlIsAutoToLowerCodeFirst=false PgSqlIsAutoToLowerCodeFirst=false
}; };
db.CodeFirst.InitTables<UpperOrder>(); db.CodeFirst.InitTables<UpperOrder>();
var list=db.Queryable<UpperOrder>().LeftJoin<UpperOrder>((X1, Y1) => var list=db.Queryable<UpperOrder, UpperOrder>((X1,Y1)=>new JoinQueryInfos(
X1.Id == Y1.Id) JoinType.Left,X1.Id==Y1.Id
.Where(X1=>X1.Id==1) ) ).ToList();
.Select(X1=>new {
x1=X1.Id,
x2=X1.Name
}).ToList();
} }
public class UpperOrder public class UpperOrder
{ {

Loading…
Cancel
Save