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

Redo JSON documentation #315

Merged
merged 1 commit into from
Nov 19, 2023
Merged

Redo JSON documentation #315

merged 1 commit into from
Nov 19, 2023

Conversation

roji
Copy link
Member

@roji roji commented Nov 19, 2023

@vonzshik @NinoFloris @Brar would be good to get some eyes on this (but I'll go ahead and merge, we can always correct later).

Closes #217

/cc @ajcvickers

@roji roji merged commit ab1dd88 into npgsql:main Nov 19, 2023
1 check passed
@roji roji deleted the Json branch November 19, 2023 15:14
github-actions bot pushed a commit that referenced this pull request Nov 19, 2023

### [Global mapping](#tab/global)

If you're using an older version of Npgsql which doesn't yet support `NpgsqlDataSource`, you can configure mappings globally for all connections in your application:
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't that only required starting with 8.0, as 7.0 and 6.0 can just send them as is?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's a note above: "Startin with Npgsql 8.0, to use this feature, you must fir eanble it by calling..." (typo with Startin...). Do you think that's not enough?

Copy link
Contributor

@vonzshik vonzshik Nov 19, 2023

Choose a reason for hiding this comment

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

I don't understand what's the point of this sentence:

If you're using an older version of Npgsql which doesn't yet support `NpgsqlDataSource`, you can configure mappings globally for all connections in your application:

given that you don't actually have to do anything

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah I see, OK - will remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Or rather tweak it - there are people using Npgsql 8.0 but who are still not using NpgsqlDataSource

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in #316

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.

Document built-in System.Text.Json support
2 participants