mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: table): rectify how to check if an IQueryable is IOrderedQueryable (#2710)
This commit is contained in:
parent
fc9aaa8781
commit
298c7de532
@ -62,8 +62,9 @@ namespace AntDesign.TableModels
|
||||
|
||||
var lambda = (Expression<Func<TItem, TField>>)_getFieldExpression;
|
||||
|
||||
if (source is IOrderedQueryable<TItem> orderedSource)
|
||||
if (source.Expression.Type == typeof(IOrderedQueryable<TItem>))
|
||||
{
|
||||
var orderedSource = source as IOrderedQueryable<TItem>;
|
||||
if (_sortDirection == SortDirection.Ascending)
|
||||
{
|
||||
return _comparer == null ? orderedSource.ThenBy(lambda) : orderedSource.ThenBy(lambda, this);
|
||||
|
Loading…
Reference in New Issue
Block a user