From cee4842c8b40b6b802de4bdc96fa6407bfc7c553 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 20 Sep 2022 21:41:25 +0800 Subject: [PATCH] Add demo --- Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs index 20d4bce5a..7d2c1cbdc 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs @@ -179,6 +179,11 @@ namespace OrmTest .Where(it => DateTime.Now.AddDays(-num) == DateTime.Now.Date) .ToList(); + var subQueryable= db.Queryable().Select(z=>new { id=z.Id}); + var list= db.Queryable(subQueryable) + .LeftJoin((x, y) => x.id == y.OrderId) + .ToList(); + var test47 = db.Queryable().Select(it => new { names = SqlFunc.Subqueryable().Where(z=>z.Id==it.Id).SelectStringJoin(z => z.Name, ",")