51 public bool All(Expression<Func<T, bool>> predicate);
52 public Task<bool>
AllAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
55 public Task<bool>
AnyAsync(CancellationToken cancel =
default);
57 public bool Any(Expression<Func<T, bool>> predicate);
58 public Task<bool>
AnyAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
61 public Task<int>
CountAsync(CancellationToken cancel =
default);
63 public int Count(Expression<Func<T, bool>> predicate);
64 public Task<int>
CountAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
67 public Task<T>
FirstAsync(CancellationToken cancel =
default);
69 public T
First(Expression<Func<T, bool>> predicate);
70 public Task<T>
FirstAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
76 public Task<T?>
FirstOrDefaultAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
79 public Task<T>
LastAsync(CancellationToken cancel =
default);
81 public T
Last(Expression<Func<T, bool>> predicate);
82 public Task<T>
LastAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
88 public Task<T?>
LastOrDefaultAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
93 public long LongCount(Expression<Func<T, bool>> predicate);
94 public Task<long>
LongCountAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
97 public Task<T>
MaxAsync(CancellationToken cancel =
default);
99 public R
Max<R>(Expression<Func<T, R>> selector);
100 public Task<R>
MaxAsync<R>(Expression<Func<T, R>> selector, CancellationToken cancel =
default);
106 public Task<T>
MinAsync(CancellationToken cancel =
default);
111 public R
Min<R>(Expression<Func<T, R>> selector);
112 public Task<R>
MinAsync<R>(Expression<Func<T, R>> selector, CancellationToken cancel =
default);
117 public T
Single(Expression<Func<T, bool>> predicate);
118 public Task<T>
SingleAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
126 public int Sum(Expression<Func<T, int>> selector);
127 public Task<int>
SumAsync(Expression<Func<T, int>> selector, CancellationToken cancel =
default);
129 public long Sum(Expression<Func<T, long>> selector);
130 public Task<long>
SumAsync(Expression<Func<T, long>> selector, CancellationToken cancel =
default);
135 public double Sum(Expression<Func<T, double>> selector);
136 public Task<double>
SumAsync(Expression<Func<T, double>> selector, CancellationToken cancel =
default);
138 public double Average(Expression<Func<T, double>> selector);
139 public Task<double>
AverageAsync(Expression<Func<T, double>> selector, CancellationToken cancel =
default);
144 public Task<List<T>>
ToListAsync(CancellationToken cancel =
default);
152 public HashSet<T>
ToHashSet(IEqualityComparer<T>? comparer);
153 public Task<HashSet<T>>
ToHashSetAsync(IEqualityComparer<T>? comparer, CancellationToken cancel =
default);
155 public Dictionary<K, V>
ToDictionary<K, V>(Func<T, K> getKey, Func<T, V> getValue) where K : notnull;
156 public Task<Dictionary<K, V>>
ToDictionaryAsync<K, V>(Func<T, K> getKey, Func<T, V> getValue, CancellationToken cancel =
default) where K : notnull;
158 public Dictionary<K, V>
ToDictionary<K, V>(Func<T, K> getKey, Func<T, V> getValue, IEqualityComparer<K>? comparer) where K : notnull;
159 public Task<Dictionary<K, V>>
ToDictionaryAsync<K, V>(Func<T, K> getKey, Func<T, V> getValue, IEqualityComparer<K>? comparer, CancellationToken cancel =
default) where K : notnull;