Interface IRedbProjectedQueryable<TResult>
Interface for LINQ query projections in REDB.
public interface IRedbProjectedQueryable<TResult>
Methods
CountAsync(CancellationToken)
Count results.
Task<int> CountAsync(CancellationToken cancellationToken = default)
FirstOrDefaultAsync(CancellationToken)
Get first result or default value.
Task<TResult?> FirstOrDefaultAsync(CancellationToken cancellationToken = default)
GetProjectionInfoAsync()
Get projection info including SQL function and structure_ids
Task<string> GetProjectionInfoAsync()
GetProjectionInfoAsync(CancellationToken)
Get projection info including SQL function and structure_ids
Task<string> GetProjectionInfoAsync(CancellationToken cancellationToken = default)
OrderBy<TKey>(Expression<Func<TResult, TKey>>)
Sort projected results.
IRedbProjectedQueryable<TResult> OrderBy<TKey>(Expression<Func<TResult, TKey>> keySelector)
OrderByDescending<TKey>(Expression<Func<TResult, TKey>>)
Sort projected results descending.
IRedbProjectedQueryable<TResult> OrderByDescending<TKey>(Expression<Func<TResult, TKey>> keySelector)
ThenBy<TKey>(Expression<Func<TResult, TKey>>)
Adds a key to the ordering started by OrderBy or OrderByDescending.
IRedbProjectedQueryable<TResult> ThenBy<TKey>(Expression<Func<TResult, TKey>> keySelector)
ThenByDescending<TKey>(Expression<Func<TResult, TKey>>)
Adds a descending key to the ordering started by OrderBy or OrderByDescending.
IRedbProjectedQueryable<TResult> ThenByDescending<TKey>(Expression<Func<TResult, TKey>> keySelector)
ToListAsync(CancellationToken)
Execute query and get list of results.
Task<List<TResult>> ToListAsync(CancellationToken cancellationToken = default)
Where(Expression<Func<TResult, bool>>)
Additional filtering of projected results.
IRedbProjectedQueryable<TResult> Where(Expression<Func<TResult, bool>> predicate)