I am trying to paginate Products from MySQL db, but if I use Skip() or Take() it returns an empty Json array as my web api response li
It turned out to be a bug in MySql.Data EF connector provided by Oracle, bug details is posted here.
Alternative solution:
I changed to another connector called Pomelo, now Skip and Take works perfectly fine. You can search nuget for Pomelo.EntityFrameworkCore.MySql and install appropriate version for your project.
To use, simply change .UseMySQL to .UseMySql when configuring DbContext, as oracle connector use SQL and pomelo use Sql only casing is different.
services.AddDbContext(options =>
options.UseMySql(Configuration.GetConnectionString("DefaultConnection")));