netcorekit icon indicating copy to clipboard operation
netcorekit copied to clipboard

This code should minus 1

Open kchinburarat opened this issue 5 years ago • 1 comments

https://github.com/cloudnative-netcore/netcorekit/blob/5f8a3807f20a85855bdc52bda425b77b3aa47b64/src/NetCoreKit.Infrastructure.EfCore/Extensions/RepositoryWithTypeExtensions.cs#L115

I think you should write the code like this var results = await queryable .Skip((criterion.CurrentPage -1) * criterion.PageSize) .Take(criterion.PageSize) .Select(selector) .ToListAsync();

kchinburarat avatar May 17 '19 15:05 kchinburarat

Thank you. Let me double check it

thangchung avatar May 24 '19 09:05 thangchung