-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[BUG] MultiLayer Includes #340
Comments
You can do Documents.Include(x => x.Sector.select(x => x.Unit.select(x => x.Plant)
…________________________________
From: Zigimun ***@***.***>
Sent: Friday, January 7, 2022 3:11:25 AM
To: fullstackhero/dotnet-webapi-boilerplate ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [fullstackhero/dotnet-webapi-boilerplate] [BUG] MultiLayer Includes (Issue #340)
I know there is a way to do the Includes right now with the specifications. But there is a problem or I dont know how to do it.
Let say I have Planets that have multiple Units which have multiple Sectors.
Now I can do the Include for Plants with function Includes. But then I cannot do the ThenInclude for the Sectors as well. This feature would be good if those Sectors have lets say documents that I can then go Documents.Include(x => x.Sector). ThenInclude (x => x.Unit). ThenInclude (x => x.Plant) to get the data for whole document without multiple calls to the API.
Am I missing something?
Best regards!
—
Reply to this email directly, view it on GitHub<#340>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AALFFSLSZSRINQ2DICDCHJDUU2N23ANCNFSM5LOHXUQQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Does this include the other way around? So. |
Yes
…________________________________
From: Zigimun ***@***.***>
Sent: Friday, January 7, 2022 8:59:00 AM
To: fullstackhero/dotnet-webapi-boilerplate ***@***.***>
Cc: dsoltesz ***@***.***>; Comment ***@***.***>
Subject: Re: [fullstackhero/dotnet-webapi-boilerplate] [BUG] MultiLayer Includes (Issue #340)
Does this include the other way around? So.
Plant.Include(x => x.Units.select(x => x.Sectors.select(x => Documents). Collections of Units with Collection of Sectors ...
—
Reply to this email directly, view it on GitHub<#340 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AALFFSKS2WGJZ2MFUTHD7NTUU3WSJANCNFSM5LOHXUQQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thank you will give it a try. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know there is a way to do the Includes right now with the specifications. But there is a problem or I dont know how to do it.
Let say I have Planets that have multiple Units which have multiple Sectors.
Now I can do the Include for Plants with function Includes. But then I cannot do the ThenInclude for the Sectors as well. This feature would be good if those Sectors have lets say documents that I can then go Documents.Include(x => x.Sector). ThenInclude (x => x.Unit). ThenInclude (x => x.Plant) to get the data for whole document without multiple calls to the API.
Am I missing something?
Best regards!
The text was updated successfully, but these errors were encountered: