Skip to content

Commit 21ede44

Browse files
committed
Reworked ISortBy interface
1 parent bd4f680 commit 21ede44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HotChocolate/Primitives/src/Primitives.Data/ISortBy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface ISortBy<TEntity>
1313
/// <summary>
1414
/// Gets the field on which the sort operation is applied.
1515
/// </summary>
16-
Expression KeySelector { get; }
16+
LambdaExpression KeySelector { get; }
1717

1818
/// <summary>
1919
/// Gets the sort direction.

src/HotChocolate/Primitives/src/Primitives.Data/SortBy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public SortBy(Expression<Func<TEntity, TValue>> keySelector, bool ascending = tr
3535
/// </summary>
3636
public Expression<Func<TEntity, TValue>> KeySelector { get; init; }
3737

38-
Expression ISortBy<TEntity>.KeySelector => KeySelector;
38+
LambdaExpression ISortBy<TEntity>.KeySelector => KeySelector;
3939

4040
/// <summary>
4141
/// Gets the sort direction.

0 commit comments

Comments
 (0)