mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update exp to sql
This commit is contained in:
parent
5a8bc73124
commit
f36334b59c
@ -43,7 +43,7 @@ namespace SqlSugar
|
||||
if (memberExp.Arguments.Count > 1)
|
||||
{
|
||||
var pars = ExpressionTool.ExpressionParameters(memberExp.Arguments.Last());
|
||||
if (pars != null && pars.Any(z => z.Type == ProPertyEntity.Type))
|
||||
if (pars != null&& ProPertyEntity!=null&& pars.Any(z => z.Type == ProPertyEntity.Type))
|
||||
{
|
||||
PropertyShortName = pars.First(z => z.Type == ProPertyEntity.Type).Name;
|
||||
}
|
||||
@ -57,7 +57,7 @@ namespace SqlSugar
|
||||
private string GetWhereSql(MethodCallExpression memberExp)
|
||||
{
|
||||
var whereExp = memberExp.Arguments[1];
|
||||
if (PropertyShortName.HasValue())
|
||||
if (PropertyShortName.HasValue()&& Navigat!=null&& Navigat.NavigatType==NavigateType.OneToMany)
|
||||
{
|
||||
var result = this.methodCallExpressionResolve.GetNewExpressionValue(whereExp, ResolveExpressType.WhereMultiple);
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user