Support Suqueryable Join Where <T , T1 , ... >

This commit is contained in:
sunkaixuna
2021-06-18 20:10:04 +08:00
parent 0f4b2692b0
commit e092aa091d
2 changed files with 18 additions and 1 deletions

View File

@@ -60,7 +60,8 @@ namespace SqlSugar
}
var selfParameterName = this.Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot;
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
if (this.Context.JoinIndex == 0)
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
return result;
}
}

View File

@@ -27,6 +27,22 @@ namespace SqlSugar
{
return this;
}
public Subqueryable<T> Where<Main, Join1>(Func<Main, Join1, bool> expression)
{
return this;
}
public Subqueryable<T> Where<Main, Join1, Join2>(Func<Main, Join1, Join2, bool> expression)
{
return this;
}
public Subqueryable<T> Where<Main, Join1, Join2, Join3>(Func<Main, Join1, Join2, Join3, bool> expression)
{
return this;
}
public Subqueryable<T> Where<Main, Join1, Join2, Join3, Join4>(Func<Main, Join1, Join2, Join3, Join4, bool> expression)
{
return this;
}
public Subqueryable<T> WhereIF(bool isWhere,Func<T, bool> expression)
{
return this;