2 instantiations of GridSort
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\GridSort.cs (2)
41
=>
new
((queryable, asc) => asc ? queryable.OrderBy(expression) : queryable.OrderByDescending(expression),
51
=>
new
((queryable, asc) => asc ? queryable.OrderByDescending(expression) : queryable.OrderBy(expression),
17 references to GridSort
Microsoft.AspNetCore.Components.QuickGrid (17)
Columns\ColumnBase.razor.cs (1)
60
public abstract
GridSort
<TGridItem>? SortBy { get; set; }
Columns\GridSort.cs (12)
35
/// Produces a <see cref="
GridSort
{T}"/> instance that sorts according to the specified <paramref name="expression"/>, ascending.
39
/// <returns>A <see cref="
GridSort
{T}"/> instance representing the specified sorting rule.</returns>
40
public static
GridSort
<TGridItem> ByAscending<U>(Expression<Func<TGridItem, U>> expression)
45
/// Produces a <see cref="
GridSort
{T}"/> instance that sorts according to the specified <paramref name="expression"/>, descending.
49
/// <returns>A <see cref="
GridSort
{T}"/> instance representing the specified sorting rule.</returns>
50
public static
GridSort
<TGridItem> ByDescending<U>(Expression<Func<TGridItem, U>> expression)
55
/// Updates a <see cref="
GridSort
{T}"/> instance by appending a further sorting rule.
59
/// <returns>A <see cref="
GridSort
{T}"/> instance representing the specified sorting rule.</returns>
60
public
GridSort
<TGridItem> ThenAscending<U>(Expression<Func<TGridItem, U>> expression)
72
/// Updates a <see cref="
GridSort
{T}"/> instance by appending a further sorting rule.
76
/// <returns>A <see cref="
GridSort
{T}"/> instance representing the specified sorting rule.</returns>
77
public
GridSort
<TGridItem> ThenDescending<U>(Expression<Func<TGridItem, U>> expression)
Columns\PropertyColumn.cs (3)
18
private
GridSort
<TGridItem>? _sortBuilder;
33
public override
GridSort
<TGridItem>? SortBy
68
_sortBuilder =
GridSort
<TGridItem>.ByAscending(Property);
Columns\TemplateColumn.cs (1)
22
[Parameter] public override
GridSort
<TGridItem>? SortBy { get; set; }