mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Async Queryable bug
This commit is contained in:
@@ -46,7 +46,7 @@ SqlFunc.Contains(u.BuildName, keyword) || SqlFunc.IsNullOrEmpty(keyword)))
|
|||||||
CountRoomer = SqlFunc.AggregateCount(ru.RoomerName),
|
CountRoomer = SqlFunc.AggregateCount(ru.RoomerName),
|
||||||
RoomID = SqlFunc.AggregateMax(ru.RoomID),
|
RoomID = SqlFunc.AggregateMax(ru.RoomID),
|
||||||
Owner = SqlFunc.Subqueryable<SubTable>().Where(r => r.RoomID == ru.RoomID && SqlFunc.Equals(r.RoomUserType, "业主") && SqlFunc.Equals(r.RoomUserType, "业主")).Select(s => s.RoomerName)
|
Owner = SqlFunc.Subqueryable<SubTable>().Where(r => r.RoomID == ru.RoomID && SqlFunc.Equals(r.RoomUserType, "业主") && SqlFunc.Equals(r.RoomUserType, "业主")).Select(s => s.RoomerName)
|
||||||
}).OrderBy((r) => r.RoomNumber, type: OrderByType.Desc).ToPageList(1, 2);
|
}).OrderBy((r) => r.RoomNumber, type: OrderByType.Desc).ToPageListAsync(1, 2).Wait();
|
||||||
}
|
}
|
||||||
public class MainTable
|
public class MainTable
|
||||||
{
|
{
|
||||||
|
@@ -1289,6 +1289,7 @@ namespace SqlSugar
|
|||||||
asyncQueryableBuilder.PartitionByValue = this.QueryBuilder.PartitionByValue;
|
asyncQueryableBuilder.PartitionByValue = this.QueryBuilder.PartitionByValue;
|
||||||
asyncQueryableBuilder.JoinExpression = this.QueryBuilder.JoinExpression;
|
asyncQueryableBuilder.JoinExpression = this.QueryBuilder.JoinExpression;
|
||||||
asyncQueryableBuilder.WhereIndex = this.QueryBuilder.WhereIndex;
|
asyncQueryableBuilder.WhereIndex = this.QueryBuilder.WhereIndex;
|
||||||
|
asyncQueryableBuilder.LambdaExpressions.ParameterIndex = this.QueryBuilder.LambdaExpressions.ParameterIndex;
|
||||||
return asyncQueryable;
|
return asyncQueryable;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user