-
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
Cosmos Where query on owned properties throws a translation exception #26849
Comments
/cc @smitpatel |
|
@smitpatel /cc @AndriySvyryd |
@smitpatel it was just an examle, none of the other options there worked, for onstance: |
@yochail The pattern in general is tracked by issue #17957, as referenced by @smitpatel above. Please vote for that issue if this is something important to you. |
@ajcvickers but isnt that the same pattern as in this test: |
Ask a question
I'm in the process of implementing a Cosmos DB access with an entity framework provider,
And every query I'm trying to run on Owned Entity gets a translation error.
I tried many different queries. and I get this error only on owned entities like in the code example.
I think this query type should be possible like in this test:
https://github.com/dotnet/efcore/blob/main/test/EFCore.Cosmos.FunctionalTests/Query/OwnedQueryCosmosTest.cs
code
The (simplefied) document classes
Context definition:
Calling code I tried, with similar error (error provided is for the first one):
Error Output
stack traces
Include provider and version information
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.Cosmos 5.0.12)
Target framework: (e.g. .NET 3.1)
Operating system:
IDE: (e.g. Visual Studio 2022 17.0.1)
The text was updated successfully, but these errors were encountered: