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

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) where TProps : class, new()