-
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
Loading Related Data with Include() #14147
Comments
Did you configure your API to ignore loops? |
Duplicate of aspnet/Mvc#4160 |
I will continue with this issue because I could not add more comments to aspnet/Mvc#4160 Well I have trying adding Look at this reference loop issue is still present. But if add Therefore, its seem like ASP.NET 2.2 & EFCore 2.2 doesn't respect this Reference https://github.com/wangkanai/Organization/commit/9ca3b16752409cd153a33260cc39cbeb0c8e9149 |
@wangkanai - ReferenceLoopHandling is not something EF Core processes. It configures the Json serialization. EF just creates result on client side. Seems like you are having issues in your serialization code path rather than EF. Given ignoring loop in results works for people using serialization, try asking question on stackoverflow. |
I trying to get related data loaded with this api method
But i just end up with follow result Code 200
using the following model
The full commit could be found here https://github.com/wangkanai/Organization/commit/683398c6e909cd3dc7049afc3ede66bfcf75c470
Its not that i never got this parent child relation working, i have a working model at https://github.com/wangkanai/EntityPattern/tree/master/ParentChild
Not sure what is going on, I run debug and found that data is getting load to
var result
.Its like that
IEnumerable<Department>
is NOT parsing toActionResult()
or something.Platform:
The text was updated successfully, but these errors were encountered: