Method GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps>, Expression<Func<RedbObject<TProps>, TResult>>, CancellationToken)

Assembly: redb.Core.dll

Returns SQL query for aggregation (for debugging)
Similar to ToQueryString() from EF Core

public virtual Task<string> GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps> context, Expression<Func<RedbObject<TProps>, TResult>> selector, CancellationToken cancellationToken = default) where TProps : class, new()