Skip to content

Commit

Permalink
Merge pull request #249 from alex-310/orderbynull
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejmnet authored Aug 23, 2023
2 parents 37ea6ab + 0b525ce commit a4ea274
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ private List<IComparable> GetCurrentOrderValues()
{
list.Add((IComparable)value);
}
else if (value == null) // Support Nullable<xx>
{
list.Add(null);
}
else
{
throw new NotSupportedException($"order by value [{order}] must implements IComparable");
Expand Down Expand Up @@ -142,4 +146,4 @@ public ValueTask DisposeAsync()
#endif

}
}
}

0 comments on commit a4ea274

Please sign in to comment.