Class TreeProjectedQueryable<TProps, TResult>

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

Implementation of projections for tree LINQ queries in REDB
Specialized version for TreeRedbObject<TProps>

public class TreeProjectedQueryable<TProps, TResult> : IRedbProjectedQueryable<TResult> where TProps : class, new()

Inheritance

Object→TreeProjectedQueryable<TProps, TResult>

Implements

Methods

CountAsync()

Count results.

public Task<int> CountAsync()

CountAsync(CancellationToken)

Count results.

public Task<int> CountAsync(CancellationToken cancellationToken = default)

Distinct()

Distinct values.

public IRedbProjectedQueryable<TResult> Distinct()

FirstOrDefaultAsync()

Get first result or default value.

public Task<TResult?> FirstOrDefaultAsync()

FirstOrDefaultAsync(CancellationToken)

Get first result or default value.

public Task<TResult?> FirstOrDefaultAsync(CancellationToken cancellationToken = default)

GetProjectionInfoAsync()

Get projection info for tree queries (not optimized yet)

public Task<string> GetProjectionInfoAsync()

GetProjectionInfoAsync(CancellationToken)

Get projection info for tree queries (not optimized yet)

public Task<string> GetProjectionInfoAsync(CancellationToken cancellationToken = default)

OrderBy<TKey>(Expression<Func<TResult, TKey>>)

Sort projected results.

public IRedbProjectedQueryable<TResult> OrderBy<TKey>(Expression<Func<TResult, TKey>> keySelector)

OrderByDescending<TKey>(Expression<Func<TResult, TKey>>)

Sort projected results descending.

public IRedbProjectedQueryable<TResult> OrderByDescending<TKey>(Expression<Func<TResult, TKey>> keySelector)

Skip(int)

Skip results.

public IRedbProjectedQueryable<TResult> Skip(int count)

Take(int)

Limit number of results.

public IRedbProjectedQueryable<TResult> Take(int count)

ThenBy<TKey>(Expression<Func<TResult, TKey>>)

Adds a key to the ordering started by OrderBy or OrderByDescending.

public 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.

public IRedbProjectedQueryable<TResult> ThenByDescending<TKey>(Expression<Func<TResult, TKey>> keySelector)

ToListAsync()

Execute query and get list of results.

public Task<List<TResult>> ToListAsync()

ToListAsync(CancellationToken)

Execute query and get list of results.

public Task<List<TResult>> ToListAsync(CancellationToken cancellationToken = default)

Where(Expression<Func<TResult, bool>>)

Additional filtering of projected results.

public IRedbProjectedQueryable<TResult> Where(Expression<Func<TResult, bool>> predicate)

Constructors