-
Notifications
You must be signed in to change notification settings - Fork 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
Initial JSON columns sample #3991
Conversation
3e059c4
to
2ff9578
Compare
Console.WriteLine(); | ||
|
||
// Since query below cannot use Include | ||
// Issue: https://github.com/dotnet/efcore/issues/28808 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is now fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update in the next PR.
2ff9578
to
fccf6e3
Compare
@dotnet/efteam Can someone approve this so I can merge and rebase more recent work on it? Will make requested changes in the next update to this area. |
```sql | ||
SELECT [a].[Id], [a].[Name], JSON_QUERY([a].[Contact],'$') | ||
FROM [Authors] AS [a] | ||
WHERE CAST(JSON_VALUE([a].[Contact],'$.Address.City') AS nvarchar(max)) = N'Chigley' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... Are we sure that we need to systematically add the CAST to nvarchar(max) everywhere where we do JSON_VALUE? At least in this case (and below) that doesn't seem necessary. In other words,
/cc @maumar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened dotnet/efcore#28881 to track this.
No description provided.