迁移后的第一次操作
This commit is contained in:
parent
09c2dcee96
commit
621d1fd29f
|
@ -37,18 +37,18 @@ namespace ShardingCore.Sharding.EntityQueryConfigurations
|
|||
/// <summary>
|
||||
/// 使用当前属性order和comparer有关联
|
||||
/// ShardingTailComparer参数 tailComparer如果是正序,reverse是false那么表示ShardingTailComparer最后采用倒序
|
||||
/// isSameAsShardingTailComparer,true表示当前添加的属性也是采用倒序,false表示当前添加的属性使用正序
|
||||
/// whenAscIsSameAsShardingTailComparer,true表示当前添加的属性也是采用倒序,false表示当前添加的属性使用正序
|
||||
/// 如果不添加AddOrder方法默认采用ShardingTailComparer在这个例子里就是倒序
|
||||
/// </summary>
|
||||
/// <typeparam name="TProperty"></typeparam>
|
||||
/// <param name="primaryOrderPropertyExpression"></param>
|
||||
/// <param name="isSameAsShardingTailComparer">
|
||||
/// <param name="whenAscIsSameAsShardingTailComparer">
|
||||
/// true:当前属性正序和comparer正序一样,false:当前属性倒序和comparer正序一样
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
public EntityQueryBuilder<TEntity> AddOrder<TProperty>(Expression<Func<TEntity, TProperty>> primaryOrderPropertyExpression,bool isSameAsShardingTailComparer = true)
|
||||
public EntityQueryBuilder<TEntity> AddOrder<TProperty>(Expression<Func<TEntity, TProperty>> primaryOrderPropertyExpression,bool whenAscIsSameAsShardingTailComparer = true)
|
||||
{
|
||||
_entityQueryMetadata.AddSeqComparerOrder(primaryOrderPropertyExpression.GetPropertyAccess().Name, isSameAsShardingTailComparer);
|
||||
_entityQueryMetadata.AddSeqComparerOrder(primaryOrderPropertyExpression.GetPropertyAccess().Name, whenAscIsSameAsShardingTailComparer);
|
||||
return this;
|
||||
}
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue