schotime / NPoco

Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Apache License 2.0
847 stars 301 forks source link

Map string to json/jsonb field with PostgreSQL #699

Closed PeterN closed 6 months ago

PeterN commented 6 months ago

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 commented 6 months ago

Ahh, seems #189 might be related.