diff --git a/src/ShardingCore/Sharding/EntityQueryConfigurations/EntityQueryBuilder.cs b/src/ShardingCore/Sharding/EntityQueryConfigurations/EntityQueryBuilder.cs index 5cbd722f..4b212d68 100644 --- a/src/ShardingCore/Sharding/EntityQueryConfigurations/EntityQueryBuilder.cs +++ b/src/ShardingCore/Sharding/EntityQueryConfigurations/EntityQueryBuilder.cs @@ -37,18 +37,18 @@ namespace ShardingCore.Sharding.EntityQueryConfigurations /// /// 使用当前属性order和comparer有关联 /// ShardingTailComparer参数 tailComparer如果是正序,reverse是false那么表示ShardingTailComparer最后采用倒序 - /// isSameAsShardingTailComparer,true表示当前添加的属性也是采用倒序,false表示当前添加的属性使用正序 + /// whenAscIsSameAsShardingTailComparer,true表示当前添加的属性也是采用倒序,false表示当前添加的属性使用正序 /// 如果不添加AddOrder方法默认采用ShardingTailComparer在这个例子里就是倒序 /// /// /// - /// + /// /// true:当前属性正序和comparer正序一样,false:当前属性倒序和comparer正序一样 /// /// - public EntityQueryBuilder AddOrder(Expression> primaryOrderPropertyExpression,bool isSameAsShardingTailComparer = true) + public EntityQueryBuilder AddOrder(Expression> primaryOrderPropertyExpression,bool whenAscIsSameAsShardingTailComparer = true) { - _entityQueryMetadata.AddSeqComparerOrder(primaryOrderPropertyExpression.GetPropertyAccess().Name, isSameAsShardingTailComparer); + _entityQueryMetadata.AddSeqComparerOrder(primaryOrderPropertyExpression.GetPropertyAccess().Name, whenAscIsSameAsShardingTailComparer); return this; } ///