Browse Source

Update nav query

SqlSugar5
sunkaixuan 2 years ago
parent
commit
8fcb2a8f38
  1. 1
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpression.cs

1
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpression.cs

@ -165,6 +165,7 @@ namespace SqlSugar
var bTableName = queryable.QueryBuilder.Builder.GetTranslationTableName(this.ProPertyEntity.DbTableName);
this.context.InitMappingInfo(mappingType);
var queryBuilerAB=this.context.Queryable<object>().QueryBuilder;
queryBuilerAB.LambdaExpressions.ParameterIndex = 100+this.methodCallExpressionResolve.Index;
var filters= queryBuilerAB.GetFilters(mappingType);
if (filters.HasValue())
{

Loading…
Cancel
Save