mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Synchronization code
This commit is contained in:
@@ -188,6 +188,15 @@ namespace SqlSugar
|
||||
result.QueryBuilder.JoinQueryInfos.Last().TableName = tableName;
|
||||
return result;
|
||||
}
|
||||
public ISugarQueryable<T, T2> LeftJoinIF<T2>(bool isLeftJoin, Expression<Func<T, T2, bool>> joinExpression)
|
||||
{
|
||||
var result = LeftJoin(joinExpression);
|
||||
if (isLeftJoin == false)
|
||||
{
|
||||
result.QueryBuilder.JoinQueryInfos.Remove(result.QueryBuilder.JoinQueryInfos.Last());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public ISugarQueryable<T, T2> LeftJoin<T2>(Expression<Func<T, T2, bool>> joinExpression)
|
||||
{
|
||||
if (MasterHasWhereFirstJoin())
|
||||
|
Reference in New Issue
Block a user