Skip to content
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

Merged
merged 1 commit into from
Aug 25, 2022
Merged

Initial JSON columns sample #3991

merged 1 commit into from
Aug 25, 2022

Conversation

ajcvickers
Copy link
Contributor

No description provided.

@ajcvickers ajcvickers force-pushed the JsonAndTheArgunauts0821 branch from 3e059c4 to 2ff9578 Compare August 21, 2022 20:14
@ajcvickers ajcvickers requested a review from a team August 21, 2022 20:16
Console.WriteLine();

// Since query below cannot use Include
// Issue: https://github.com/dotnet/efcore/issues/28808
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is now fixed

Copy link
Contributor Author

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.

@ajcvickers ajcvickers force-pushed the JsonAndTheArgunauts0821 branch from 2ff9578 to fccf6e3 Compare August 25, 2022 10:40
@ajcvickers
Copy link
Contributor Author

@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'
Copy link
Member

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

Copy link
Member

@roji roji Aug 25, 2022

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.

@ajcvickers ajcvickers merged commit 4ea929a into main Aug 25, 2022
@smitpatel smitpatel deleted the JsonAndTheArgunauts0821 branch November 2, 2022 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants