/// <inheritdoc cref="QueryAsync{T}(IDbQuery, ulong, Func{IQueryBuilder, IQueryBuilderWithFrom}, IDbTransaction)"/> public static Task <Maybe <IEnumerable <T> > > QueryAsync <T>( this IDbQuery @this, Func <IQueryBuilder, IQueryBuilderWithFrom> builder, IDbTransaction transaction ) => QueryBuilderF.Build <T>( builder ) .BindAsync( x => @this.QueryAsync <T>(x, transaction) );
/// <summary> /// Use a fluent <see cref="IQueryBuilder"/> to create a query to run against the database /// </summary> /// <typeparam name="T">Return model type</typeparam> /// <param name="this">IDbQuery</param> /// <param name="page">Page number</param> /// <param name="builder">Query builder</param> /// <param name="transaction">Database transaction</param> public static Task <Maybe <IPagedList <T> > > QueryAsync <T>( this IDbQuery @this, ulong page, Func <IQueryBuilder, IQueryBuilderWithFrom> builder, IDbTransaction transaction ) => QueryBuilderF.Build <T>( builder ) .BindAsync( x => @this.QueryAsync <T>(page, x, transaction) );