-
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 JSON array column size throws exception #30132
Comments
currently querying capabilities are not supported - you can only project the JSON object or it's part. All querying must be done on the client. We track enabling this scenario here: #28616 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Include your code
I follow up JSON column from post https://devblogs.microsoft.com/dotnet/announcing-ef7-release-candidate-2/ .
And working a sample at: https://github.com/xuzhg/mydotnetconf/tree/JsonColumn/JsonColumn
Now, I have a question related to the JSON Array Column. How can I get the array size? (I don't want to use "ToListAsync" or "ToEnumerableAsync" something like these.
For example:
Where: 'Addresses' is saved as a JSON array column on the DB side, (I call ToJson in the DbContext)
So, when I do like:
Of course, I can do as follows (it works), but that's not what I want.
Did I do anything wrong? Thanks.
I am using EFCore.SqlServer 7.0.2
The text was updated successfully, but these errors were encountered: