Page 1 of 1

PostgreSQL error - 'NpgsqlDbType' does not contain a definition for 'VarChar'

Posted: Wed Sep 13, 2023 8:48 pm
by fabernal

Hi,
When I generate code from a Postgresql database, I get this error:
Models\Login.cs(355,43): error CS0117: 'NpgsqlDbType' does not contain a definition for 'VarChar'

If open the project in visual studio and change the type for Varchar the solution compile.

How can I resolve the issue from asp.net maker?

Thanks


Re: Postgres error

Posted: Thu Sep 14, 2023 8:56 am
by MichaelG

Tested user login with PostgreSQL using ASP.NET Maker 2023 (latest version) and did not find any issue. Please make sure that you are using the latest version and also update to the latest template (Tools -> Update Template).