Class RedbQueryableExtensions

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

Extension methods for IRedbQueryable.
Adds ToSqlStringAsync() and ToAggregateSqlStringAsync() for SQL preview (debugging).

public static class RedbQueryableExtensions

Inheritance

ObjectRedbQueryableExtensions

Methods

ToAggregateSqlStringAsync<TProps, TResult>(IRedbQueryable<TProps>, Expression<Func<RedbObject<TProps>, TResult>>)

Returns the SQL query for aggregation (for debugging).

public static Task<string> ToAggregateSqlStringAsync<TProps, TResult>(this IRedbQueryable<TProps> query, Expression<Func<RedbObject<TProps>, TResult>> selector) where TProps : class, new()

ToSqlStringAsync<TProps>(IRedbQueryable<TProps>)

Returns the SQL query that will be executed (for debugging).

public static Task<string> ToSqlStringAsync<TProps>(this IRedbQueryable<TProps> query) where TProps : class, new()