Postgres and JSON?

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
RobertK
Posts: 67
Joined: Thu 02 Mar 2017 05:44

Postgres and JSON?

Post by RobertK » Wed 19 Sep 2018 13:15

how do you set a class property to json? (i.e so the column will be a json datatype)

I can see only two class data types: object and string

Shalex
Site Admin
Posts: 8660
Joined: Thu 14 Aug 2008 12:44

Re: Postgres and JSON?

Post by Shalex » Thu 20 Sep 2018 13:54

Please map json database column to the System.String property. Refer to https://www.devart.com/dotconnect/postg ... pping.html.

RobertK
Posts: 67
Joined: Thu 02 Mar 2017 05:44

Re: Postgres and JSON?

Post by RobertK » Thu 27 Sep 2018 02:03

what is the object data type used for?

Shalex
Site Admin
Posts: 8660
Joined: Thu 14 Aug 2008 12:44

Re: Postgres and JSON?

Post by Shalex » Fri 28 Sep 2018 14:49

System.Object is not mapped to any database type at the moment: https://www.devart.com/dotconnect/postg ... pping.html.

You can change a default mapping via:
* the Tools > Options > Servers' Options > PostgreSQL menu in case of a standalone Entity Developer
* the Tools > Entity Developer > Options > Servers Options > PostgreSQL menu in case of Entity Developer embedded into Visual Studio

Post Reply