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

Map string to json/jsonb field with PostgreSQL #699

Closed
PeterN opened this issue Mar 8, 2024 · 1 comment
Closed

Map string to json/jsonb field with PostgreSQL #699

PeterN opened this issue Mar 8, 2024 · 1 comment

Comments

@PeterN
Copy link

PeterN commented Mar 8, 2024

Hello,

I'd like to able to store a pre-serialized string into a json or jsonb field with PostgreSQL.

I don't want any automatic (de-)serialization to happen, as the json data does not map to a single model.

Is this possible to achieve with NPoco? I see that WithDbType() exists but I'm not sure if is what I need.

Thanks!

@PeterN
Copy link
Author

PeterN commented Mar 8, 2024

Ahh, seems #189 might be related.

@PeterN PeterN closed this as completed Mar 8, 2024
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

No branches or pull requests

1 participant