dotConnectPostgreSQL problem with null value

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
ratm
Posts: 13
Joined: Thu 14 Feb 2019 11:36

dotConnectPostgreSQL problem with null value

Post by ratm » Mon 30 Sep 2019 18:55

hi my problem is that when PostgreSQL DB with Linq returns Values null to me it takes them as a string and on screen it writes me null while the same program with the same calls linq cn SQLServer the problem there is no osa can be?

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

Re: dotConnectPostgreSQL problem with null value

Post by Shalex » Fri 04 Oct 2019 10:27

ADO.NET level:
If there is NULL in the database column, the provider returns NULL. If it is an empty string in the database, the provider returns an empty string.

DataGridView level:
You can control the way how to represent the NULL value via DataGridViewCellStyle.NullValue.

Post Reply