skip to Main Content

EF Core 6 Paging Error: OFFSET must not be negative – Asp.net

I'm doing pagination with EF core 6 and dotnet core. public async Task<IEnumerable<CommentResponse>> GetCommentOfPostAsync(Guid PostId, int PageNumber, int PageSize) => await _context.Comments .Include(comment => comment.User) .OrderBy(comment => comment.CommentId) .Select( data => new CommentResponse { CommentId = data.CommentId, UserId = data.UserId,…

VIEW QUESTION
Back To Top
Search