-
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 owned object fails #16188
Comments
I ran into the same issue and am waiting for the resolution (hopefully soon). While at it, I think it might be useful to remove the current requirement (which I think is a bug) to mark Owned type properties as virtual if Lazy Loading is enabled. I think the bug might even be related to treating Owned properties as Nav properties when lazy loading is enabled. Just my 2 cents... |
Just wondering if this issue has been fixed. It seems to be still open. |
@ibasin This hasn't been fixed yet and we currently can't provide an estimate as to when it will be. |
Related to #16186 |
@ibasin @AndriySvyryd It works with "EF Core 3.0.0-rc1.19456.14" . But Entry.Reload doesn't reload owned objects #16186 . |
Good to hear |
Thank you! |
Lazy Loading owned object and
Entry(entity).Reference(e => e.OwnedObject).LoadAsync()
are failed. OnlydbContext.DbSet.Include(e => e.OwnedObject).FirstOrDefaultAsync()
works.BTW, they fail on EF Core version: 3.0.0-preview6.19304.10 but work on EntityFramerworkCore 3.0.0-preview5.19227.1.
Further technical details
EF Core version: 3.0.0-preview6.19304.10
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system:
IDE: (e.g. Visual Studio 2019 16.1.3)
The text was updated successfully, but these errors were encountered: