#nullable disable using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using NadekoBot.Services.Database.Models; namespace NadekoBot.Db; public static class CurrencyTransactionExtensions { public static Task> GetPageFor( this DbSet set, ulong userId, int page) => set.ToLinqToDBTable() .Where(x => x.UserId == userId) .OrderByDescending(x => x.DateAdded) .Skip(15 * page) .Take(15) .ToListAsyncLinqToDB(); }