Interface IRedbProjectedQueryable<TResult>

Namespace: redb.Core.Query
Assembly: redb.Core.dll

Interface for LINQ query projections in REDB.

public interface IRedbProjectedQueryable<TResult>

Methods

CountAsync()

Count results.

Task<int> CountAsync()

CountAsync(CancellationToken)

Count results.

Task<int> CountAsync(CancellationToken cancellationToken = default)

Distinct()

Distinct values.

IRedbProjectedQueryable<TResult> Distinct()

FirstOrDefaultAsync()

Get first result or default value.

Task<TResult?> FirstOrDefaultAsync()

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)

Skip(int)

Skip results.

IRedbProjectedQueryable<TResult> Skip(int count)

Take(int)

Limit number of results.

IRedbProjectedQueryable<TResult> Take(int count)

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()

Execute query and get list of results.

Task<List<TResult>> ToListAsync()

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)