The fix you made makes sense only if you use EF Core 2.1 as in the new version of EF Core 2.2 it will be fixed and I guess nopCommerce 4.20 will use the new version anyway so the fix will no longer be needed in 4.20.
Wouldn't it be better if you add the fix to the official nopCommerce 4.10 source code and update the NoSourceCode version with the fix as well?
Some store owners are not technically savvy and will have difficulties applying the fix themselves. Also many store owners don't read the forums and they have no idea that such an issue exists and usually come to us with questions like "Do you know why nopCommerce 4.10 is slower than 3.90?" etc.
I know you usually don't update the official versions of nopCommerce once they are released but in this case your fix is a quite simple change and it is NOT a breaking change. I also don't think it will break any of our existing code for example plugins etc. but at the same time it will resolve so many performance issues in nopCommerce 4.10 out of the box.
So, what should I do to fix EF Core 2.1 problem in my current Nopcommerce 4.10 projects? I tried to change code, but I couldn't find a file "NopLazyLoader.cs"
I downloaded source code both from offical page: https://www.nopcommerce.com/downloads.aspx github: (https://github.com/nopSolutions/nopCommerce/archive/develop.zip) and pulled from git command.
But there is no such a file.
I have just updated EF Core from 2.1 to 2.1.4. Does it helpful for performance problem?