You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, it would be great to be able to achieve the equivalent of [NpgsqlDbType(NpgsqlDbType.Jsonb)] without an annotation, similar to how RepoDbAutoMapper works.
Context: in one of our projects we try to use a Clean Architecture project structure and we can't (well, it feels wrong to) use NpgsqlDbType inside of the Domain project.
In a PostgreSQL database with a
JSONB
column, how should we define this field in an entity class?This works:
Is there any way to automatically get the structured data?
Or do we have to seriaize and deserialize this ourselves?
For example, in Dapper you can define & register a type handler:
And then you can define the entity field directly, without annotations, as
Would be great if you could add an example best practice to the docs.
Thank you!
The text was updated successfully, but these errors were encountered: