Update Join bug

This commit is contained in:
sunkaixuna
2021-07-21 12:34:45 +08:00
parent 8ed1c1579c
commit 30c01c88c4
2 changed files with 5 additions and 0 deletions

View File

@@ -149,6 +149,10 @@ namespace OrmTest
it.CreateTime.Second,
it.CreateTime.Date
}).ToList();
var test15 = db.Queryable<Order, Order>((o, i) => new JoinQueryInfos(
JoinType.Left, o.Name == SqlFunc.ToString(SqlFunc.MergeString(",", i.Name, ","))
))
.Select<ViewOrder>().ToList();
Console.WriteLine("#### Examples End ####");
}

View File

@@ -390,6 +390,7 @@ namespace SqlSugar
ILambdaExpressions expressionContext = sqlBuilder.QueryBuilder.LambdaExpressions;
expressionContext.MappingColumns = this.MappingColumns;
expressionContext.MappingTables = this.MappingTables;
expressionContext.IsSingle = false;
if (this.Context.CurrentConnectionConfig.MoreSettings != null)
{
expressionContext.PgSqlIsAutoToLower = this.Context.CurrentConnectionConfig.MoreSettings.PgSqlIsAutoToLower;