50 public bool All(Expression<Func<T, bool>> predicate);
51 public Task<bool>
AllAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
54 public Task<bool>
AnyAsync(CancellationToken cancel =
default);
56 public bool Any(Expression<Func<T, bool>> predicate);
57 public Task<bool>
AnyAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
60 public Task<int>
CountAsync(CancellationToken cancel =
default);
62 public int Count(Expression<Func<T, bool>> predicate);
63 public Task<int>
CountAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
66 public Task<T>
FirstAsync(CancellationToken cancel =
default);
68 public T
First(Expression<Func<T, bool>> predicate);
69 public Task<T>
FirstAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
75 public Task<T?>
FirstOrDefaultAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
78 public Task<T>
LastAsync(CancellationToken cancel =
default);
80 public T
Last(Expression<Func<T, bool>> predicate);
81 public Task<T>
LastAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
87 public Task<T?>
LastOrDefaultAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
92 public long LongCount(Expression<Func<T, bool>> predicate);
93 public Task<long>
LongCountAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
96 public Task<T>
MaxAsync(CancellationToken cancel =
default);
98 public R
Max<R>(Expression<Func<T, R>> selector);
99 public Task<R>
MaxAsync<R>(Expression<Func<T, R>> selector, CancellationToken cancel =
default);
105 public Task<T>
MinAsync(CancellationToken cancel =
default);
110 public R
Min<R>(Expression<Func<T, R>> selector);
111 public Task<R>
MinAsync<R>(Expression<Func<T, R>> selector, CancellationToken cancel =
default);
116 public T
Single(Expression<Func<T, bool>> predicate);
117 public Task<T>
SingleAsync(Expression<Func<T, bool>> predicate, CancellationToken cancel =
default);
125 public int Sum(Expression<Func<T, int>> selector);
126 public Task<int>
SumAsync(Expression<Func<T, int>> selector, CancellationToken cancel =
default);
128 public long Sum(Expression<Func<T, long>> selector);
129 public Task<long>
SumAsync(Expression<Func<T, long>> selector, CancellationToken cancel =
default);
134 public double Sum(Expression<Func<T, double>> selector);
135 public Task<double>
SumAsync(Expression<Func<T, double>> selector, CancellationToken cancel =
default);
137 public double Average(Expression<Func<T, double>> selector);
138 public Task<double>
AverageAsync(Expression<Func<T, double>> selector, CancellationToken cancel =
default);
143 public Task<List<T>>
ToListAsync(CancellationToken cancel =
default);
151 public HashSet<T>
ToHashSet(IEqualityComparer<T>? comparer);
152 public Task<HashSet<T>>
ToHashSetAsync(IEqualityComparer<T>? comparer, CancellationToken cancel =
default);
154 public Dictionary<K, V>
ToDictionary<K, V>(Func<T, K> getKey, Func<T, V> getValue) where K : notnull;
155 public Task<Dictionary<K, V>>
ToDictionaryAsync<K, V>(Func<T, K> getKey, Func<T, V> getValue, CancellationToken cancel =
default) where K : notnull;
157 public Dictionary<K, V>
ToDictionary<K, V>(Func<T, K> getKey, Func<T, V> getValue, IEqualityComparer<K>? comparer) where K : notnull;
158 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;