-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: Include() for related collections are dropped when use Skip() #6492
Comments
I have the same issue with EF Core. Includes are gone when Skip with value > 0 is used. The generated SQL seems to be ok though just as @m-anthoine mentions. Thanks for adding this to the 1.1 release, it is really a breaking issue at the moment. |
Possible dupe of #5901 |
@smitpatel I'm sorry to say, in the 1.0.1 version it still reproduces when Skip is greater than 0. I'm happy to share more in depth details if needed. |
Can you show the query generated in 1.0.1? |
Main product query: SELECT [p].[Id], [p].[CreatedOnUtc], [p].[Description], [p].[Donate], [p].[Price], [p].[SellStatus], [p].[Status], [p].[Title] This is one of the include/theninclude queries (which seems ok): SELECT [p3].[ProductId], [p3].[CategoryId], [c].[Id], [c].[Name] |
@bottomup - the |
@smitpatel thanks. Does this mean the next release (1.0,2) fixes the issue? |
@bottomup - Yes. |
Fixed in #6607 |
Reopening to go through proper approval process. |
This patch is approved, please ensure it is merged into the correct branch and building as part of the patch train. |
This fix will be part of 1.0.2. Now 1.1.0 was just released, is this fix also included there? I can't find it in the release notes. |
@bottomup AFAIK all fixes marked as approved for 1.0.2 across all aspnet repos so far have been included in 1.1 RTM as well. In some cases separate issues may exist for each release but I don't think that is generally the case. And I am not sure we took that into account when preparing the release notes for 1.1. |
@divega I have just tested the issue with the 1.1.0 release, and it seems to be fixed :) |
In general it's fair to assume that every RTM (i.e. non-pre-rel) version was released with all the fixes from all lower versions. |
The main case where we have duplicated bugs for patch + release is when a future release already has a fix, but we later chose to backport a fix to a patch, so we needed to open a new bug for the patch release. |
@Eilon not sure what you meant Worth updating the release notes? |
Oops, I somehow typo'ed out an entire word. I edited it to say What release notes are you referring to? |
Does that mean if we fix something in 1.0.3 then we would backport it to 1.1.1 release? |
@smitpatel well, that wouldn't be back-porting, it's front-porting 😄 But actually that's an interesting point, and I hadn't considered that scenario. I think certainly in some cases the answer is yes, we would port such fixes (assuming they actually apply - not all fixes would actually make sense to port), but ultimately it's case-by-case. |
@Eilon I was referring to https://github.com/aspnet/EntityFramework/releases/tag/rel/1.1.0 and https://github.com/aspnet/home/releases/1.1.0 but not sure if that is what @bottomup was referring to. |
@divega O I C. I'm less concerned about the release notes :) |
@divega yes I was refering to the release notes you link to.. |
Visual Studio 201 update 3
Asp.net Core website project
ef7 : V1.0.0
postgresql database : Npgsql.EntityFrameworkCore.PostgreSQL v1.0.0
I have a context with some entities :
When i try to get paged data of "Produit" entities, I get some troubles to include its related collection of "ProduitCategorie"s
When I call
GetPagedData(0, 10);
the 10th first element are returned with theirProduitCategories
collection populated.When I call it with a skip value other than 0, the collection is always returned with 0 elements.
Maybe it's relevant or not but even skip 0 or skip 10 produced the same output in debug window :
skip(0) :
Skip(10) :
To my tests, there are no problems when I try to include/thenInclude related entities that are not collections.
The text was updated successfully, but these errors were encountered: